Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure embedding quota limit #979

Merged
merged 2 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/docs/gpt-researcher/llms/llms.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ See also the documentation in the Langchain [Azure OpenAI](https://api.python.la

On Azure OpenAI you will need to create deployments for each model you want to use. Please also specify the model names/deployment names in your `.env` file:

Required Embedding Model:
To ensure optimal performance, GPT Researcher requires the text-embedding-3-large model. Please deploy this specific model to your Azure Endpoint.

```bash
AZURE_OPENAI_API_KEY=[Your Key]
AZURE_OPENAI_ENDPOINT=https://{your-endpoint}.openai.azure.com/
Expand All @@ -75,7 +78,7 @@ FAST_LLM=azure_openai:gpt-4o-mini
SMART_LLM=azure_openai:gpt-4o
STRATEGIC_LLM=azure_openai:o1-preview

EMBEDDING="azure_openai:text-embedding-ada-002"

```


Expand Down
4 changes: 2 additions & 2 deletions gpt_researcher/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def _handle_deprecated_attributes(self) -> None:
case "custom":
self.embedding_model = os.getenv("OPENAI_EMBEDDING_MODEL", "custom")
case "openai":
self.embedding_model = "text-embedding-3-small"
self.embedding_model = "text-embedding-3-large"
case "azure_openai":
self.embedding_model = os.environ["AZURE_EMBEDDING_MODEL"]
self.embedding_model = "text-embedding-3-large"
case "huggingface":
self.embedding_model = "sentence-transformers/all-MiniLM-L6-v2"
case _:
Expand Down