forked from stanfordnlp/dspy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request stanfordnlp#317 from CShorten/main
Refactor Integration Examples and WeaviateRM Bug Fixes
- Loading branch information
Showing
4 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# ToDo | ||
|
||
# Start Weaviate Embedded | ||
|
||
# Add Toy Data | ||
|
||
# Connect DSPy | ||
|
||
# Test this API | ||
""" | ||
from dspy.retrieve.weaviate_rm import WeaviateRM | ||
retriever_model = WeaviateRM("WeaviateBlogChunk", weaviate_client=weaviate_client) | ||
dspy.settings.configure(rm=retriever_model) | ||
retrieve = dspy.Retrieve(k=1) | ||
topK_passages = retrieve("what are the stages in planning, sanctioning and execution of public works").passages | ||
assert(type(topK_passages)) | ||
""" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Integration Examples | ||
This folder contains a cookbook of using DSPy with 3rd party integrations. | ||
|
||
DSPy currently supports integrations with: (sorted alphabetically): | ||
- ChromadbRM | ||
- ClarifaiRM | ||
- MarqoRM | ||
- MongoDBAtlasRM | ||
- PineconeRM | ||
- QdrantRM | ||
- VectaraRM | ||
- WeaviateRM | ||
- YouRM |