一个简易的RAG #76

Open
opened 2024-09-12 19:19:50 +08:00 by 12535224197cs · 2 comments

step1: 从PDF文件中提取文本,并将数据索引到Elasticsearch实例中


X1.jpg

step2: 通过检索的search_results和用户的query构建Prompt


X2.jpg

step3: 使用QIANFAN模型生成回答


X3.jpg

### step1: 从PDF文件中提取文本,并将数据索引到Elasticsearch实例中 ----- ![X1.jpg](https://cdn.nlark.com/yuque/0/2024/png/44993204/1726138851002-04a8b2e3-2bfe-4527-b4eb-c725a7847f6b.png?x-oss-process=image%2Fresize%2Cw_970%2Climit_0) ### step2: 通过检索的search_results和用户的query构建Prompt ----- ![X2.jpg](https://cdn.nlark.com/yuque/0/2024/png/44993204/1726139020678-5b3572ef-4e43-4951-afbf-32941988083d.png?x-oss-process=image%2Fresize%2Cw_1036%2Climit_0) ### step3: 使用QIANFAN模型生成回答 ----- ![X3.jpg](https://cdn.nlark.com/yuque/0/2024/png/44993204/1726138851070-9a33215c-651f-4de1-b2ef-b6e9853acd9e.png?x-oss-process=image%2Fresize%2Cw_1500%2Climit_0)

666

666

666

666
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: HswOAuth/llm_course#76
No description provided.