Spaces:
Sleeping
Sleeping
Update kadiApy_ragchain.py
Browse files- kadiApy_ragchain.py +2 -2
kadiApy_ragchain.py
CHANGED
@@ -25,8 +25,8 @@ class KadiApyRagchain:
|
|
25 |
|
26 |
# Retrieve contexts
|
27 |
print("Start retrieving:")
|
28 |
-
doc_contexts = self.retrieve_contexts(query, k=
|
29 |
-
code_contexts = self.retrieve_contexts(rewritten_query, k=
|
30 |
|
31 |
|
32 |
# Vanilla
|
|
|
25 |
|
26 |
# Retrieve contexts
|
27 |
print("Start retrieving:")
|
28 |
+
doc_contexts = self.retrieve_contexts(query, k=2, filter={"dataset_category": "kadi_apy_docs"})
|
29 |
+
code_contexts = self.retrieve_contexts(rewritten_query, k=3, filter={"usage": code_library_usage_prediction})
|
30 |
|
31 |
|
32 |
# Vanilla
|