Skip to content

Commit

Permalink
add text_llm in rag_1
Browse files Browse the repository at this point in the history
  • Loading branch information
baptiste-pasquier committed Mar 22, 2024
1 parent 6e0f384 commit be651f3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/rag_1/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class Config:

path: PathConfig

text_llm: HydraObject
vision_llm: HydraObject
embedding: HydraObject
vectorstore: HydraObject
Expand Down
9 changes: 9 additions & 0 deletions backend/rag_1/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ path:
export_extracted: "${.docs}/extracted/${..name}"
database: "database/${..name}"

text_llm:
_target_: langchain_openai.AzureChatOpenAI
azure_endpoint: ${oc.env:TEXT_OPENAI_ENDPOINT}
openai_api_key: ${oc.env:TEXT_OPENAI_API_KEY}
openai_api_version: "2024-02-15-preview"
deployment_name: "gpt4-turbo"
temperature: 0.0
max_tokens: 1024

vision_llm:
_target_: langchain_openai.AzureChatOpenAI
azure_endpoint: ${oc.env:VISION_OPENAI_ENDPOINT}
Expand Down

0 comments on commit be651f3

Please sign in to comment.