Skip to content

Commit

Permalink
Updated langchain-core dependency to resolve conflict. (#200)
Browse files Browse the repository at this point in the history
* Updated langchain-core dependency to resolve conflict.

* Updated README for Mistral instructions.

* updated the env.example file

* updated README

* accepted incoming changes from upstream
  • Loading branch information
hemantmalik authored Mar 12, 2024
1 parent aed8c4e commit a901e4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions example-apps/chatbot-rag-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ export GOOGLE_APPLICATION_CREDENTIALS=<path-json-service-account>

### Mistral AI

To use Mistral AI you need to set the following environment variables:
To use Mistral AI you need to set the following environment variables. The app has been tested with Mistral Large Model deployed through Microsoft Azure. More information [here](https://learn.microsoft.com/en-us/azure/ai-studio/how-to/deploy-models-mistral).

```
export LLM_TYPE=mistral
export MISTRAL_API_KEY=...
export MISTRAL_API_ENDPOINT=... # optional
export MISTRAL_API_ENDPOINT=... # should be of the form https://<endpoint>.<region>.inference.ai.azure.com
export MISTRAL_MODEL=... # optional
```

Expand Down
2 changes: 1 addition & 1 deletion example-apps/chatbot-rag-app/api/llm_integrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def init_bedrock(temperature):
def init_mistral_chat(temperature):
MISTRAL_API_ENDPOINT = os.getenv("MISTRAL_API_ENDPOINT")
MISTRAL_API_KEY = os.getenv("MISTRAL_API_KEY")
MISTRAL_MODEL = os.getenv("MISTRAL_MODEL")
MISTRAL_MODEL = os.getenv("MISTRAL_MODEL", "Mistral-large")
kwargs = {
"mistral_api_key": MISTRAL_API_KEY,
"temperature": temperature,
Expand Down

0 comments on commit a901e4c

Please sign in to comment.