Python: Enhance Azure AI Search Citations with Complete URL Information (#2066)

* add get_url to raw rep for absolute path url

* fixes

* add real url to citation annotation

* small fix

* project client + openapi fix

* openapi sample revert

* tool call list fix
This commit is contained in:
Giles Odigwe
2025-11-13 11:23:11 -08:00
committed by GitHub
Unverified
parent 6d890e46ed
commit 21dceca482
3 changed files with 253 additions and 10 deletions
@@ -103,11 +103,11 @@ async def main() -> None:
print()
# Display collected citations
# Display collected citation
if citations:
print("\n\nCitations:")
print("\n\nCitation:")
for i, citation in enumerate(citations, 1):
print(f"[{i}] Reference: {citation.url}")
print(f"[{i}] {citation.url}")
print("\n" + "=" * 50 + "\n")
print("Hotel search conversation completed!")