HowieHwong / MetaTool

[ICLR 2024] MetaTool Benchmark for Large Language Models: Deciding Whether to Use Tools and Which to Use
MIT License
70 stars 8 forks source link

pymilvus.exceptions.SchemaNotReadyException #2

Closed cp-jose closed 10 months ago

cp-jose commented 10 months ago

hello. I noticed a few imprecisions on the README, but managed to get to the part where (after installing and starting a local milvus standalone) I attempt to construct the prompts using python prompt_constructing.py all which yields this error:

raise SchemaNotReadyException(
pymilvus.exceptions.SchemaNotReadyException: <SchemaNotReadyException: (code=1, message=Collection 'tool_embedding' not exist,     or you can pass in schema to create one.)>

Since no specific version for pymilvus is specified on the requirements.txt file I have installed version '2.3.5'.

Can you please advise on how to overcome this?

thank you

HowieHwong commented 10 months ago

Hi! For the error:

raise SchemaNotReadyException(
pymilvus.exceptions.SchemaNotReadyException: <SchemaNotReadyException: (code=1, message=Collection 'tool_embedding' not exist,     or you can pass in schema to create one.)>

You should firstly run milvus_database.py to construct a Collection.

Sorry for ambiguous version of milvus. I've checked it and it's 2.2.15 in my device.

cp-jose commented 10 months ago

thanks for the prompt reply. Issue closed.