Skip to content

Commit f67dab3

Browse files
Merge branch 'main' into config-refactor
2 parents 84f5a88 + 47adfe1 commit f67dab3

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "patch",
3+
"description": "Fix DRIFT search on Azure AI Search."
4+
}

graphrag/vector_stores/azure_ai_search.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ def load_documents(
111111
name="vector",
112112
type=SearchFieldDataType.Collection(SearchFieldDataType.Single),
113113
searchable=True,
114+
hidden=False, # DRIFT needs to return the vector for client-side similarity
114115
vector_search_dimensions=self.vector_size,
115116
vector_search_profile_name=self.vector_search_profile_name,
116117
),

tests/fixtures/min-csv/config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@
123123
{
124124
"query": "What is the major conflict in this story and who are the protagonist and antagonist?",
125125
"method": "global"
126+
},
127+
{
128+
"query": "Who is Jordan Hayes?",
129+
"method": "basic"
126130
}
127131
],
128132
"slow": false

tests/fixtures/text/config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@
140140
{
141141
"query": "What is the major conflict in this story and who are the protagonist and antagonist?",
142142
"method": "global"
143+
},
144+
{
145+
"query": "Who is Jordan Hayes?",
146+
"method": "basic"
143147
}
144148
],
145149
"slow": false

0 commit comments

Comments
 (0)