AnswerDotAI / AnswerDotAI/RAGatouille
How can i integrate RAGtouille with DSPy
- Dominant language
- Python
- Stars
- 4k
- Forks
- 276
- PR merge metrics
- No merged PRs in 30d
Description
I have successfully created an index and I can easily search using
RAG = RAGPretrainedModel.from_index("my_index")
results = RAG.search(query,k=2,index_name="/m_index")
How do i integrate it in dspy?
What i want to do is ?
dspy.settings.configure(lm=lm, rm=RAG)
Issue:
retrieve = dspy.Retrieve(k=1)("hello")
TypeError: 'RAGPretrainedModel' object is not callable
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the shown RAGatouille and DSPy snippets and consult the APIs for RAGPretrainedModel and dspy.Retrieve. Determine whether the requested integration is documentation or a supported feature, and consider the work complete when the integration path is clearly documented or implemented with a working equivalent of the reported example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100