zilliztech / GPTCache

Semantic cache for LLMs. Fully integrated with LangChain and llama_index.
https://gptcache.readthedocs.io
MIT License
7.23k stars 502 forks source link

如何设置Milvus的db_name? #624

Closed Songjiadong closed 7 months ago

Songjiadong commented 7 months ago

What would you like to be added?

vector_base = VectorBase(name='milvus',
                                 host=MILVUS["host"],
                                 port=MILVUS["port"],
                                 user=MILVUS["user"],
                                 password=MILVUS["password"],
                                 index_params={
                                     "metric_type": "IP",
                                     "index_type": "IVF_FLAT",
                                     "params": {"nprobe": 10, "nlist": 128}
                                 },
                                 search_params={
                                     "metric_type": "IP",
                                     "index_type": "IVF_FLAT",
                                     "params": {"nprobe": 10, "nlist": 128}
                                 },
                                 dimension=1024,
                                 collection_name="gptcache")

Why is this needed?

目前默认生成在default db中,比如我的db想放在 xx中

Anything else?

No response

SimFG commented 7 months ago

It is not supported currently