Skip to content

Commit

Permalink
Update embedder docs to show openai key is used for LLM (#2033)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev-Khant authored Nov 18, 2024
1 parent 8a56f0e commit a02597e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/components/embedders/models/azure_openai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ os.environ["EMBEDDING_AZURE_DEPLOYMENT"] = "your-deployment-name"
os.environ["EMBEDDING_AZURE_ENDPOINT"] = "your-api-base-url"
os.environ["EMBEDDING_AZURE_API_VERSION"] = "version-to-use"

os.environ["OPENAI_API_KEY"] = "your_api_key" # For LLM


config = {
"embedder": {
Expand Down
1 change: 1 addition & 0 deletions docs/components/embedders/models/gemini.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import os
from mem0 import Memory

os.environ["GOOGLE_API_KEY"] = "key"
os.environ["OPENAI_API_KEY"] = "your_api_key" # For LLM

config = {
"embedder": {
Expand Down
2 changes: 1 addition & 1 deletion docs/components/embedders/models/huggingface.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ You can use embedding models from Huggingface to run Mem0 locally.
import os
from mem0 import Memory

os.environ["OPENAI_API_KEY"] = "your_api_key"
os.environ["OPENAI_API_KEY"] = "your_api_key" # For LLM

config = {
"embedder": {
Expand Down
2 changes: 1 addition & 1 deletion docs/components/embedders/models/ollama.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ You can use embedding models from Ollama to run Mem0 locally.
import os
from mem0 import Memory

os.environ["OPENAI_API_KEY"] = "your_api_key"
os.environ["OPENAI_API_KEY"] = "your_api_key" # For LLM

config = {
"embedder": {
Expand Down
1 change: 1 addition & 0 deletions docs/components/embedders/models/together.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import os
from mem0 import Memory

os.environ["TOGETHER_API_KEY"] = "your_api_key"
os.environ["OPENAI_API_KEY"] = "your_api_key" # For LLM

config = {
"embedder": {
Expand Down
1 change: 1 addition & 0 deletions docs/components/embedders/models/vertexai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ from mem0 import Memory

# Set the path to your Google Cloud credentials JSON file
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "/path/to/your/credentials.json"
os.environ["OPENAI_API_KEY"] = "your_api_key" # For LLM

config = {
"embedder": {
Expand Down

0 comments on commit a02597e

Please sign in to comment.