Skip to content

Commit

Permalink
Updated ChromadbRM documentation to use generic EmbeddingFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
nerlfield committed Feb 15, 2024
1 parent 0c5386f commit 7dab4bb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions dspy/retrieve/chromadb_rm.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ class ChromadbRM(dspy.Retrieve):
Args:
collection_name (str): chromadb collection name
persist_directory (str): chromadb persist directory
openai_embed_model (str, optional): The OpenAI embedding model to use. Defaults to "text-embedding-ada-002".
openai_api_key (str, optional): The API key for OpenAI. Defaults to None.
openai_org (str, optional): The organization for OpenAI. Defaults to None.
k (int, optional): The number of top passages to retrieve. Defaults to 3.
embedding_function (Optional[EmbeddingFunction[Embeddable]]): Optional function to use to embed documents. Defaults to DefaultEmbeddingFunction.
k (int, optional): The number of top passages to retrieve. Defaults to 7.
Returns:
dspy.Prediction: An object containing the retrieved passages.
Expand Down

0 comments on commit 7dab4bb

Please sign in to comment.