Skip to content

Commit 96487a7

Browse files
authored
Merge pull request #164 from pradorodriguez/patch-2
Removing unnecessary code
2 parents 6c9883f + 4d367cc commit 96487a7

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

articles/search/tutorial-rag-build-solution-query.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,16 +167,10 @@ search_results = search_client.search(
167167
vector_queries= [vector_query],
168168
filter="search.ismatch('ice*', 'locations', 'full', 'any')",
169169
select=["title", "chunk", "locations"],
170-
top=5,
170+
top=5
171171
)
172172

173173
sources_formatted = "=================\n".join([f'TITLE: {document["title"]}, CONTENT: {document["chunk"]}, LOCATIONS: {document["locations"]}' for document in search_results])
174-
175-
search_results = search_client.search(
176-
search_text=query,
177-
top=10,
178-
filter="search.ismatch('ice*', 'locations', 'full', 'any')",
179-
select="title, chunk, locations"
180174
```
181175

182176
Results from the filtered query should now look similar to the following response. Notice the emphasis on ice cover.

0 commit comments

Comments
 (0)