Spaces:
Sleeping
Sleeping
WilliamGazeley
commited on
Commit
·
de8e9d9
1
Parent(s):
1aa696a
Disable vector search
Browse files- src/functions.py +3 -2
src/functions.py
CHANGED
@@ -23,7 +23,7 @@ az_search_client = SearchClient(config.az_search_endpoint, config.az_search_idx_
|
|
23 |
@tool
|
24 |
def get_analysis(query: str) -> dict:
|
25 |
"""
|
26 |
-
|
27 |
pieces of analysis relevant to your query. You MUST ALWAYS use this function
|
28 |
to help form your opinions and predictions.
|
29 |
|
@@ -37,7 +37,8 @@ def get_analysis(query: str) -> dict:
|
|
37 |
search_text=query,
|
38 |
select="title,content,asset_name,write_date",
|
39 |
include_total_count=True,
|
40 |
-
top=config.az_search_top_k
|
|
|
41 |
)
|
42 |
|
43 |
output = []
|
|
|
23 |
@tool
|
24 |
def get_analysis(query: str) -> dict:
|
25 |
"""
|
26 |
+
Full text search through your database of company and crypto analysis, retrieves top 4
|
27 |
pieces of analysis relevant to your query. You MUST ALWAYS use this function
|
28 |
to help form your opinions and predictions.
|
29 |
|
|
|
37 |
search_text=query,
|
38 |
select="title,content,asset_name,write_date",
|
39 |
include_total_count=True,
|
40 |
+
top=config.az_search_top_k,
|
41 |
+
vector_queries=None, # Docs are too semantically similar, disable for now
|
42 |
)
|
43 |
|
44 |
output = []
|