WilliamGazeley
commited on
Commit
·
7c1188c
1
Parent(s):
8293804
Add semantic config
Browse files- src/functions.py +2 -1
src/functions.py
CHANGED
|
@@ -33,11 +33,12 @@ def get_analysis(query: str) -> dict:
|
|
| 33 |
list: A list of dictionaries containing the pieces of analysis.
|
| 34 |
"""
|
| 35 |
results = az_search_client.search(
|
| 36 |
-
query_type="
|
| 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 |
|
|
|
|
| 33 |
list: A list of dictionaries containing the pieces of analysis.
|
| 34 |
"""
|
| 35 |
results = az_search_client.search(
|
| 36 |
+
query_type="semantic",
|
| 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 |
+
semantic_configuration_name="basic-keywords",
|
| 42 |
vector_queries=None, # Docs are too semantically similar, disable for now
|
| 43 |
)
|
| 44 |
|