Skip to content

Commit 44ea519

Browse files
szymondudyczberkecanrizai
authored andcommitted
Separate REST server from question answerer (#7176)
Co-authored-by: berkecanrizai <[email protected]> GitOrigin-RevId: ec84c6e9f2be188c14b1fbf8e8105ae8678918f8
1 parent 97f8ac2 commit 44ea519

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/pipelines/adaptive-rag/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ BaseRAGQuestionAnswerer is the base class to build RAG applications with Pathway
2121
It is meant to get you started with your RAG application right away.
2222

2323
Here, we extend the `BaseRAGQuestionAnswerer` to implement the adaptive retrieval and reply to requests in the endpoint `/v1/pw_ai_answer`.
24-
Since we are interested in changing the behavior and logic of the RAG, we only modify `pw_ai_query` function that handles all this logic, and then replies to the post request.
24+
Since we are interested in changing the behavior and logic of the RAG, we only modify `answer` function that handles all this logic, and then replies to the post request.
2525

26-
`pw_ai_query` function takes the `pw_ai_queries` table as the input, this table contains the prompt, and other arguments coming from the post request, see the `BaseRAGQuestionAnswerer` class and defined schemas to learn more about getting inputs with post requests.
26+
`answer` function takes the `pw_ai_queries` table as the input, this table contains the prompt, and other arguments coming from the post request, see the `BaseRAGQuestionAnswerer` class and defined schemas to learn more about getting inputs with post requests.
2727
We use the data in this table to call our adaptive retrieval logic.
2828

2929
To do that, we use `answer_with_geometric_rag_strategy_from_index` implementation provided under the `pathway.xpacks.llm.question_answering`.

0 commit comments

Comments
 (0)