Skip to content

Commit

Permalink
Update entity retriever
Browse files Browse the repository at this point in the history
  • Loading branch information
YoanSallami committed Sep 8, 2024
1 parent ff90ebd commit 03d8a6c
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def __init__(
self.max_distance = max_distance
self.reranker = reranker
self.k = k
self.reverse = reverse
vector_dim = self.embeddings.dim
if self.distance == "euclidean":
self.index = faiss.IndexFlatL2(vector_dim)
Expand Down
29 changes: 18 additions & 11 deletions notebooks/hotel_recommendation.ipynb

Large diffs are not rendered by default.

40 changes: 21 additions & 19 deletions notebooks/knowledge_graph_rag.ipynb

Large diffs are not rendered by default.

0 comments on commit 03d8a6c

Please sign in to comment.