Skip to content

Commit 74013b3

Browse files
committed
wip
1 parent 06d8b88 commit 74013b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/server/rag/rag.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ export interface RAG<T extends RagContext = RagContext> {
1616
buildPrompt: BuildPromptFn<T>,
1717
}
1818

19+
type RAGUnion = RAG<RagContext> | RAG<RagContextWebSearch>;
20+
1921
// list of all rags
2022
export const RAGs: {
21-
[Key in RAGType]: RAG<RagContext> | RAG<RagContextWebSearch>;
23+
[Key in RAGType]: RAGUnion;
2224
} = {
2325
webSearch: ragWebsearch,
2426
pdfChat: ragPdfchat,

0 commit comments

Comments
 (0)