Skip to content

Commit

Permalink
feat(config): add rag schema
Browse files Browse the repository at this point in the history
Signed-off-by: Braden Mars <[email protected]>
  • Loading branch information
BradenM committed May 15, 2024
1 parent bebd93d commit 313cabb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .envrc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions packages/config/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@ const langchainSchema = z.object({
project: z.string().default('crisiscleanup-3-api'),
})

const ragSchema = z.object({
chatModel: z.string().default('gpt-4o'),
documentEmbedModel: z.string().default('text-embedding-3-large'),
queryEmbedModel: z.string().default('text-embedding-3-small'),
})

const langchainSecretsSchema = z.object({
apiKey: z.string().default('').optional(),
})
Expand All @@ -168,6 +174,7 @@ const apiAppConfigSchema = z.object({
connect: connectSchema.default({}),
phone: phoneSchema.default({}),
langchain: langchainSchema.default({}),
rag: ragSchema.default({}),
})
export interface ApiAppConfig extends z.infer<typeof apiAppConfigSchema> {}

Expand Down

0 comments on commit 313cabb

Please sign in to comment.