Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/apis/semanticSearchPostgresDocs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ const zEmbeddedDoc = z.object({
headerPath: z
.array(z.string())
.describe('The path to the header of the documentation entry.'),
sourceUrl: z
.string()
.nullable()
.describe('The URL of the documentation entry.'),
content: z.string().describe('The content of the documentation entry.'),
tokenCount: z
.number()
Expand Down Expand Up @@ -76,6 +80,7 @@ export const semanticSearchPostgresDocsFactory: ApiFactory<
SELECT
id::int,
header_path AS "headerPath",
source_url AS "sourceUrl",
content,
token_count::int AS "tokenCount",
embedding <=> $1::vector(1536) AS distance
Expand Down