|
|
@ -53,8 +53,7 @@
|
|
|
|
"import openai\n",
|
|
|
|
"import openai\n",
|
|
|
|
"\n",
|
|
|
|
"\n",
|
|
|
|
"URI = 'your_uri'\n",
|
|
|
|
"URI = 'your_uri'\n",
|
|
|
|
"USER = 'your_user'\n",
|
|
|
|
"TOKEN = 'your_token' # TOKEN == user:password or api_key\n",
|
|
|
|
"PASSWORD = 'your_password'\n",
|
|
|
|
|
|
|
|
"COLLECTION_NAME = 'book_search'\n",
|
|
|
|
"COLLECTION_NAME = 'book_search'\n",
|
|
|
|
"DIMENSION = 1536\n",
|
|
|
|
"DIMENSION = 1536\n",
|
|
|
|
"OPENAI_ENGINE = 'text-embedding-ada-002'\n",
|
|
|
|
"OPENAI_ENGINE = 'text-embedding-ada-002'\n",
|
|
|
@ -83,7 +82,7 @@
|
|
|
|
"from pymilvus import connections, utility, FieldSchema, Collection, CollectionSchema, DataType\n",
|
|
|
|
"from pymilvus import connections, utility, FieldSchema, Collection, CollectionSchema, DataType\n",
|
|
|
|
"\n",
|
|
|
|
"\n",
|
|
|
|
"# Connect to Zilliz Database\n",
|
|
|
|
"# Connect to Zilliz Database\n",
|
|
|
|
"connections.connect(uri=URI, user=USER, password=PASSWORD, secure=True)"
|
|
|
|
"connections.connect(uri=URI, token=TOKEN)"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|