Skip to content

Python: Bug: Python: Search results using vector is empty #11633

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Farhad-Heybati opened this issue Apr 17, 2025 · 2 comments
Open

Python: Bug: Python: Search results using vector is empty #11633

Farhad-Heybati opened this issue Apr 17, 2025 · 2 comments
Assignees
Labels
bug Something isn't working python Pull requests for the Python Semantic Kernel

Comments

@Farhad-Heybati
Copy link

Describe the bug
Runing the step_1_interact_with_the_collection.py, I can get some result with Search results using text but Search results using vector is empty:
earch results using text:
25 (in Metairie, USA): Newly Redesigned Rooms & airport shuttle. Minutes from the airport, enjoy lakeside amenities, a resort-style pool & stylish new guestrooms with Internet TVs. (score: 3.8262758)
40 (in Scottsdale, USA): Only 8 miles from Downtown. On-site bar/restaurant, Free hot breakfast buffet, Free wireless internet, All non-smoking hotel. Only 15 miles from airport. (score: 3.66492)
21 (in Atlanta, USA): 1 Mile from the airport. Free WiFi, Outdoor Pool, Complimentary Airport Shuttle, 6 miles from Lake Lanier & 10 miles from downtown. Our business center includes printers, a copy machine, fax, and a work area. (score: 3.2264395)
Search results using vector:

When I verify in Azure AI Search, my index, hotels-sample-index has 50 documents, 561.42 KB of total storage but Vector index quota usage is 0.

Can you confirme that vectorization in Azure AI Search works for hotels-sample dataset?
To Reproduce
Steps to reproduce the behavior:

  1. Follow the instructions in python\samples\concepts\memory\azure_ai_search_hotel_samples\README.md
  2. Run python\samples\concepts\memory\azure_ai_search_hotel_samples\step_1_interact_with_the_collection.py

Expected behavior
Return 2 set of results:

  1. based on text search
  2. based on the vector search

Screenshots
If applicable, add screenshots to help explain your problem.

Platform

  • Language: [Python]
  • Source: [main branch of repository]
  • AI model: [e.g. OpenAI:GPT-4o-mini(2024-07-18)]
  • IDE: [VS Code]
  • OS: [Windows]

Additional context
Add any other context about the problem here.

@Farhad-Heybati Farhad-Heybati added the bug Something isn't working label Apr 17, 2025
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code python Pull requests for the Python Semantic Kernel triage labels Apr 17, 2025
@github-actions github-actions bot changed the title Bug: Python: Search results using vector is empty .Net: Bug: Python: Search results using vector is empty Apr 17, 2025
@github-actions github-actions bot changed the title .Net: Bug: Python: Search results using vector is empty Python: Bug: Python: Search results using vector is empty Apr 17, 2025
@moonbox3
Copy link
Contributor

Hi @Farhad-Heybati, when you inspect your index in the portal, can you confirm that you do see vectors for description_vector?

@Farhad-Heybati
Copy link
Author

Hello, yes the vector for description_vector is present. I add some screen shot.

hotel vector.docx

There was also an issue with size of the vector: 3072 instead of 1536

I found the same issue described here:
https://learn.microsoft.com/en-au/answers/questions/2101167/azure-ai-search-adding-a-vector-field-returns-empt

@moonbox3 moonbox3 removed .NET Issue or Pull requests regarding .NET code triage labels Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working python Pull requests for the Python Semantic Kernel
Projects
Status: No status
Development

No branches or pull requests

4 participants