Skip to content

Commit 7f89715

Browse files
updated search filter field name
1 parent 32d30e4 commit 7f89715

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ async def get_section_content(request_body, request_headers):
912912
def retrieve_document(filepath):
913913
try:
914914
search_client = init_ai_search_client()
915-
search_query = f"filepath eq '{filepath}'"
915+
search_query = f"sourceurl eq '{filepath}'"
916916
# Execute the search query
917917
results = search_client.search(search_query)
918918

0 commit comments

Comments
 (0)