Skip to content

Duplicate vector stores with same name are created, and the first one becomes inaccessible via list API. #2386

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

Closed
1 task done
rakeshsilswal opened this issue May 29, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@rakeshsilswal
Copy link

Confirm this is an issue with the Python library and not an underlying OpenAI API

  • This is an issue with the Python library

Describe the bug

hi,

following code should have returned value in if condition, but it doesn't.

print(util.client.vector_stores.retrieve(vector_store_id="vs_uReWuTIUuxlBCKR8iGlDuVnf")) response = util.client.vector_stores.list() for store in response.data: if store.id == "vs_uReWuTIUuxlBCKR8iGlDuVnf": print("========>", store.name)

To Reproduce

Bug Summary: Duplicate vector stores with same name are created, and the first one becomes inaccessible via list API.

Steps to Reproduce:

  1. Create a vector store with the name "XYZ".

  2. Fetch the ID of the vector store and store it as XYZ_id.

  3. Again, create a vector store with the same name "XYZ".

  4. Fetch the ID of the second vector store and store it as XYZ_id_2.
    Note: Ideally, this step should not create a new vector store since a store with the same name already exists.

  5. Run:

    client.vector_stores.retrieve(vector_store_id=XYZ_id)

    ✅ Returns the vector store, name is "XYZ".

  6. Run:

    client.vector_stores.retrieve(vector_store_id=XYZ_id_2)

    ✅ Also returns a vector store, name is "XYZ".

  7. Run:

    stores = client.vector_stores.list()
    for store in stores:
        print(store.id, store.name)

    ❌ Only XYZ_id_2 is listed. XYZ_id is missing from the list.

Issue:

  • The list() API does not return the original vector store (XYZ_id), resulting in a loss of reference.
  • System allows duplicate vector stores with the same name, which may lead to unexpected behavior.

Code snippets

OS

windows

Python version

3.11

Library version

1.82

@rakeshsilswal rakeshsilswal added the bug Something isn't working label May 29, 2025
@RobertCraigie
Copy link
Collaborator

Thanks for reporting!

This sounds like an issue with the underlying OpenAI API and not the SDK, so I'm going to go ahead and close this issue.

Would you mind reposting at community.openai.com?

@RobertCraigie RobertCraigie closed this as not planned Won't fix, can't repro, duplicate, stale May 29, 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
Projects
None yet
Development

No branches or pull requests

2 participants