[Python] What is the easiest way of converting json to vector database

Discussão em 'Python' iniciado por Stack, Junho 23, 2025.

  1. Stack

    Stack Membro Participativo

    I need to convert a json file to vector database. I use chromadb.

    collection.add(
    documents=["This is a document", "This is another document"],
    metadatas=[{"source": "my_source"}, {"source": "my_source"}],
    ids=["id1", "id2"]
    )


    This code is used to add a new data to the collection. How can I give a one big json file with complex fields(for example some fields has array values) to save into the collection. Or is there a better way to keep vector database rather than chromadb

    Continue reading...

Compartilhe esta Página