JonahWhaler / llm-agent-toolkit

LLM AgeToolkit provides minimal, modular interfaces for core components in LLM-based applications.
GNU General Public License v3.0
0 stars 0 forks source link

get_collection force program to terminate when the desired collection is not found #7

Closed JonahWhaler closed 1 day ago

JonahWhaler commented 1 day ago
try:
    collection = vdb.get_collection(name="none-exists-collection-name")
except Exception as e:
    print(str(e))
    # type(e) is 'chromadb.errors.InvalidCollectionException'