Skip to content

Commit

Permalink
Update WeaviateRM.md (#1898)
Browse files Browse the repository at this point in the history
* Update WeaviateRM.md

Edited docs to reflect Weaviate client

* Update WeaviateRM.md

Added the same line somewhere else
  • Loading branch information
MaxwellSalmon authored Dec 7, 2024
1 parent a0340c7 commit 6dcb1fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/deep-dive/retrieval_models_clients/WeaviateRM.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ An example of the WeaviateRM constructor:

```python
WeaviateRM(
collection_name: str
weaviate_collection_name: str
weaviate_client: str,
k: int = 5
)
Expand Down Expand Up @@ -44,7 +44,7 @@ from dspy.retrieve.weaviate_rm import WeaviateRM
weaviate_client = weaviate.connect_to_embedded() # you can also use local or WCD

retriever_model = WeaviateRM(
collection_name="<WEAVIATE_COLLECTION>",
weaviate_collection_name="<WEAVIATE_COLLECTION>",
weaviate_client=weaviate_client
)

Expand Down

0 comments on commit 6dcb1fb

Please sign in to comment.