Skip to content

Commit ae1107a

Browse files
committed
fix topk, add comparision table
Signed-off-by: ChengZi <[email protected]>
1 parent d1b960f commit ae1107a

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

evaluation/README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,16 @@ Evaluate the performance of RAG pipelines based on [ragas](https://github.com/ex
44

55

66
- [evaluate_fiqa_openai.ipynb](evaluate_fiqa_openai.ipynb) Use Ragas to evaluate the OpenAI Assistant
7-
- [evaluate_fiqa_customized_RAG.ipynb](evaluate_fiqa_customized_RAG.ipynb) Use Ragas to evaluate the customized RAG pipeline based on milvus
7+
- [evaluate_fiqa_customized_RAG.ipynb](evaluate_fiqa_customized_RAG.ipynb) Use Ragas to evaluate the customized RAG pipeline based on milvus
8+
9+
The following outlines a comparison between two experimental setups:
10+
11+
| | OpenAI assistant | Customized RAG pipeline |
12+
| --- | --- | --- |
13+
| LLM model | gpt-4-1106-preview | gpt-4-1106-preview |
14+
| Vector DB | Not Disclosed | milvus |
15+
| Embedding model | Not Disclosed | BAAI/bge-base-en |
16+
| Chunk size | Not Disclosed | 1000 |
17+
| Chunk overlap | Not Disclosed | 40 |
18+
| topk | Not Disclosed | 5 |
19+
| Use Agent | Yes | Yes |

evaluation/evaluate_fiqa_customized_RAG.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@
302302
"outputs": [],
303303
"source": [
304304
"def search_milvus(question, top_k=5):\n",
305-
" contexts = vector_db.similarity_search(question)\n",
305+
" contexts = vector_db.similarity_search(question, k=top_k)\n",
306306
" return contexts[:top_k]"
307307
],
308308
"metadata": {

0 commit comments

Comments
 (0)