Skip to content

Commit 23dc07b

Browse files
authored
fix: regenerate docs skill to sync with removed config (#1454)
* fix: resolve CI failures in verify-generated-files, deno tests, and LLM acceptance - Format n8n integration files with prettier (out of sync on main) - Format postgresql.py (ruff reformatting) - Format self-driving-agents tool files with prettier - Skip jest.spyOn-based abort signal tests when running under Deno (jest global is not available in the Deno test runner) - Upgrade bedrock LLM acceptance model from nova-2-lite to nova-2-pro (lite model too weak for fact extraction quality assertions) * fix: revert bedrock model back to nova-2-lite for LLM acceptance tests
1 parent 0e344a2 commit 23dc07b

10 files changed

Lines changed: 632 additions & 596 deletions

File tree

deno.lock

Lines changed: 33 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hindsight-api-slim/hindsight_api/engine/sql/postgresql.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,7 @@ def build_bm25_arm(
186186
) -> str:
187187
if text_search_extension == "vchord":
188188
# <&> returns a distance (lower = more relevant), negate for score
189-
bm25_score_expr = (
190-
f"-(search_vector <&> to_bm25query('idx_memory_units_text_search', tokenize({text_param}, 'llmlingua2')))"
191-
)
189+
bm25_score_expr = f"-(search_vector <&> to_bm25query('idx_memory_units_text_search', tokenize({text_param}, 'llmlingua2')))"
192190
bm25_order_by = f"{bm25_score_expr} DESC"
193191
bm25_where_filter = ""
194192
elif text_search_extension == "pg_textsearch":

hindsight-integrations/n8n/README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,31 +37,31 @@ Restart n8n and the **Hindsight** node appears in the node panel.
3737

3838
### Retain — store content in a bank
3939

40-
| Field | Description |
41-
|---|---|
42-
| Bank ID | The memory bank to store in (auto-created on first use) |
40+
| Field | Description |
41+
| ------- | ----------------------------------------------------------------------- |
42+
| Bank ID | The memory bank to store in (auto-created on first use) |
4343
| Content | Free text to retain. Hindsight extracts structured facts asynchronously |
44-
| Tags | Comma-separated tags applied to the stored memory |
44+
| Tags | Comma-separated tags applied to the stored memory |
4545

4646
### Recall — search a bank
4747

48-
| Field | Description |
49-
|---|---|
50-
| Bank ID | Memory bank to search |
51-
| Query | Natural-language query |
52-
| Budget | `low` / `mid` / `high` — controls retrieval depth |
53-
| Max Tokens | Cap on returned memory tokens |
54-
| Tags Filter | Filter memories by tag |
48+
| Field | Description |
49+
| ----------- | ------------------------------------------------- |
50+
| Bank ID | Memory bank to search |
51+
| Query | Natural-language query |
52+
| Budget | `low` / `mid` / `high` — controls retrieval depth |
53+
| Max Tokens | Cap on returned memory tokens |
54+
| Tags Filter | Filter memories by tag |
5555

5656
Returns: `{ results: [{ text, score, ... }, ...] }`
5757

5858
### Reflect — LLM-synthesized answer
5959

60-
| Field | Description |
61-
|---|---|
60+
| Field | Description |
61+
| ------- | ------------------------- |
6262
| Bank ID | Memory bank to reflect on |
63-
| Query | Question to answer |
64-
| Budget | `low` / `mid` / `high` |
63+
| Query | Question to answer |
64+
| Budget | `low` / `mid` / `high` |
6565

6666
Returns: `{ text: "...", citations: [...] }`
6767

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type {
2-
IAuthenticateGeneric,
3-
ICredentialTestRequest,
4-
ICredentialType,
5-
INodeProperties,
6-
} from 'n8n-workflow';
2+
IAuthenticateGeneric,
3+
ICredentialTestRequest,
4+
ICredentialType,
5+
INodeProperties,
6+
} from "n8n-workflow";
77

88
/**
99
* Credentials for the Hindsight memory API.
@@ -12,45 +12,45 @@ import type {
1212
* to your deployment (e.g. http://localhost:8888).
1313
*/
1414
export class HindsightApi implements ICredentialType {
15-
name = 'hindsightApi';
16-
displayName = 'Hindsight API';
17-
documentationUrl = 'https://hindsight.vectorize.io/developer/api/quickstart';
18-
properties: INodeProperties[] = [
19-
{
20-
displayName: 'API URL',
21-
name: 'apiUrl',
22-
type: 'string',
23-
default: 'https://api.hindsight.vectorize.io',
24-
description:
25-
'Base URL of the Hindsight API. Defaults to Hindsight Cloud; change for self-hosted instances.',
26-
required: true,
27-
},
28-
{
29-
displayName: 'API Key',
30-
name: 'apiKey',
31-
type: 'string',
32-
typeOptions: { password: true },
33-
default: '',
34-
description:
35-
'API key for Hindsight Cloud (begins with "hsk_"). Leave blank for unauthenticated self-hosted instances.',
36-
},
37-
];
15+
name = "hindsightApi";
16+
displayName = "Hindsight API";
17+
documentationUrl = "https://hindsight.vectorize.io/developer/api/quickstart";
18+
properties: INodeProperties[] = [
19+
{
20+
displayName: "API URL",
21+
name: "apiUrl",
22+
type: "string",
23+
default: "https://api.hindsight.vectorize.io",
24+
description:
25+
"Base URL of the Hindsight API. Defaults to Hindsight Cloud; change for self-hosted instances.",
26+
required: true,
27+
},
28+
{
29+
displayName: "API Key",
30+
name: "apiKey",
31+
type: "string",
32+
typeOptions: { password: true },
33+
default: "",
34+
description:
35+
'API key for Hindsight Cloud (begins with "hsk_"). Leave blank for unauthenticated self-hosted instances.',
36+
},
37+
];
3838

39-
authenticate: IAuthenticateGeneric = {
40-
type: 'generic',
41-
properties: {
42-
headers: {
43-
Authorization: '={{ $credentials.apiKey ? "Bearer " + $credentials.apiKey : "" }}',
44-
},
45-
},
46-
};
39+
authenticate: IAuthenticateGeneric = {
40+
type: "generic",
41+
properties: {
42+
headers: {
43+
Authorization: '={{ $credentials.apiKey ? "Bearer " + $credentials.apiKey : "" }}',
44+
},
45+
},
46+
};
4747

48-
// Test against /health — works for both Cloud and self-hosted
49-
test: ICredentialTestRequest = {
50-
request: {
51-
baseURL: '={{ $credentials.apiUrl }}',
52-
url: '/health',
53-
method: 'GET',
54-
},
55-
};
48+
// Test against /health — works for both Cloud and self-hosted
49+
test: ICredentialTestRequest = {
50+
request: {
51+
baseURL: "={{ $credentials.apiUrl }}",
52+
url: "/health",
53+
method: "GET",
54+
},
55+
};
5656
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export { Hindsight } from './nodes/Hindsight/Hindsight.node';
2-
export { HindsightApi } from './credentials/HindsightApi.credentials';
1+
export { Hindsight } from "./nodes/Hindsight/Hindsight.node";
2+
export { HindsightApi } from "./credentials/HindsightApi.credentials";

0 commit comments

Comments
 (0)