DSPy: The framework for programming—not prompting—language models
Python
📝 (ChromadbRM.md): Update the return type description in the documentation The return type description for the search function in the ChromadbRM documentation was updated to provide more detailed information about the structure of the returned object. This change will help developers understand the structure of the returned object and how to use it in their code.
dominike72ef1bc2e56
diff --git a/docs/api/retrieval_model_clients/ChromadbRM.md b/docs/api/retrieval_model_clients/ChromadbRM.mdindex 42f6f42e7..bbd1aaafd 100644--- a/docs/api/retrieval_model_clients/ChromadbRM.md+++ b/docs/api/retrieval_model_clients/ChromadbRM.md@@ -34,7 +34,7 @@ Search the chromadb collection for the top `k` passages matching the given query- `k` (_Optional[int]_, _optional_): The number of results to retrieve. If not specified, defaults to the value set during initialization.**Returns:**-- `dspy.Prediction`: Contains the retrieved passages, each represented as a `dotdict` with a `long_text` attribute.+- `dspy.Prediction`: Contains the retrieved passages, each represented as a `dotdict` with schema `[{"id": str, "score": float, "long_text": str, "metadatas": dict }]`### Quickstart with OpenAI Embeddings