You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are already set of prompts such as prompt_query_rewrite and prompt_query_rewrite_hyde, allow setting the query transformation behaviour in the BaseRAGQA initialization. It can default to None to skip it.
The text was updated successfully, but these errors were encountered:
Related to pathwaycom#67
Add query transformation behavior to `BaseRAGQuestionAnswerer` initialization.
* **`python/pathway/xpacks/llm/question_answering.py`**
- Add `query_rewrite_method` parameter to `BaseRAGQuestionAnswerer` initialization.
- Update `answer_query` method to apply the selected query transformation prompt.
- Use `query_rewrite_method` to select the appropriate query transformation prompt.
- Add `query_rewrite_method` parameter to `GeometricRAGQuestionAnswerer` initialization.
- Update `answer_query` method in `GeometricRAGQuestionAnswerer` to apply the selected query transformation prompt.
* **`python/pathway/xpacks/llm/tests/test_rag.py`**
- Add tests to verify the new functionality of `query_rewrite_method`.
- Test different values of `query_rewrite_method` parameter.
There are already set of prompts such as
prompt_query_rewrite
andprompt_query_rewrite_hyde
, allow setting the query transformation behaviour in theBaseRAGQA
initialization. It can default toNone
to skip it.The text was updated successfully, but these errors were encountered: