Skip to content

Commit 0f4d110

Browse files
committed
feat: return sourceUrl for postgres docs
1 parent 7339ee3 commit 0f4d110

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/apis/semanticSearchPostgresDocs.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ const zEmbeddedDoc = z.object({
3131
headerPath: z
3232
.array(z.string())
3333
.describe('The path to the header of the documentation entry.'),
34+
sourceUrl: z
35+
.string()
36+
.url()
37+
.describe('The URL of the documentation entry.'),
3438
content: z.string().describe('The content of the documentation entry.'),
3539
tokenCount: z
3640
.number()
@@ -76,6 +80,7 @@ export const semanticSearchPostgresDocsFactory: ApiFactory<
7680
SELECT
7781
id::int,
7882
header_path AS "headerPath",
83+
source_url AS "sourceUrl",
7984
content,
8085
token_count::int AS "tokenCount",
8186
embedding <=> $1::vector(1536) AS distance

0 commit comments

Comments
 (0)