mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-16 17:53:37 +00:00
change embedding to None (#7355)
This commit is contained in:
parent
a2830e3056
commit
49b2b0e3c0
@ -19,7 +19,6 @@ from langchain.vectorstores.base import VectorStore
|
||||
Base = declarative_base() # type: Any
|
||||
|
||||
|
||||
ADA_TOKEN_COUNT = 1536
|
||||
_LANGCHAIN_DEFAULT_COLLECTION_NAME = "langchain"
|
||||
|
||||
|
||||
@ -79,7 +78,7 @@ class EmbeddingStore(BaseModel):
|
||||
)
|
||||
collection = relationship(CollectionStore, back_populates="embeddings")
|
||||
|
||||
embedding: Vector = sqlalchemy.Column(Vector(ADA_TOKEN_COUNT))
|
||||
embedding: Vector = sqlalchemy.Column(Vector(None))
|
||||
document = sqlalchemy.Column(sqlalchemy.String, nullable=True)
|
||||
cmetadata = sqlalchemy.Column(JSON, nullable=True)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user