mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-13 14:50:00 +00:00
Make format
This commit is contained in:
parent
ac7e73a531
commit
98265ea29d
@ -278,9 +278,10 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"from langchain_core.documents import Document\n",
|
|
||||||
"import uuid\n",
|
"import uuid\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
"from langchain_core.documents import Document\n",
|
||||||
|
"\n",
|
||||||
"docs = [\n",
|
"docs = [\n",
|
||||||
" Document(\n",
|
" Document(\n",
|
||||||
" id=str(uuid.uuid4()),\n",
|
" id=str(uuid.uuid4()),\n",
|
||||||
@ -400,7 +401,7 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"from langchain_postgres.v2.indexes import IVFFlatIndex, HNSWIndex\n",
|
"from langchain_postgres.v2.indexes import HNSWIndex, IVFFlatIndex\n",
|
||||||
"\n",
|
"\n",
|
||||||
"index = IVFFlatIndex()\n",
|
"index = IVFFlatIndex()\n",
|
||||||
"await store.aapply_vector_index(index)\n",
|
"await store.aapply_vector_index(index)\n",
|
||||||
@ -461,7 +462,7 @@
|
|||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"await store.adrop_vector_index() # Delete index using the default name\n",
|
"await store.adrop_vector_index() # Delete index using the default name\n",
|
||||||
"await store.adrop_vector_index(\"my-hnsw-index\") # Delete index using the index name"
|
"await store.adrop_vector_index(\"my-hnsw-index\") # Delete index using the index name"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -10,8 +10,8 @@ from langchain_couchbase import CouchbaseSearchVectorStore
|
|||||||
from langchain_milvus import Milvus
|
from langchain_milvus import Milvus
|
||||||
from langchain_mongodb import MongoDBAtlasVectorSearch
|
from langchain_mongodb import MongoDBAtlasVectorSearch
|
||||||
from langchain_pinecone import PineconeVectorStore
|
from langchain_pinecone import PineconeVectorStore
|
||||||
from langchain_qdrant import QdrantVectorStore
|
|
||||||
from langchain_postgres import PGVectorStore
|
from langchain_postgres import PGVectorStore
|
||||||
|
from langchain_qdrant import QdrantVectorStore
|
||||||
|
|
||||||
vectorstore_list = [
|
vectorstore_list = [
|
||||||
"FAISS",
|
"FAISS",
|
||||||
|
Loading…
Reference in New Issue
Block a user