chore: Update AstraDB.py imports and method signature for search_documents
This commit is contained in:
parent
77e23d9442
commit
6b67c4996d
1 changed files with 2 additions and 2 deletions
|
|
@ -3,13 +3,13 @@ from loguru import logger
|
||||||
from langflow.base.vectorstores.model import LCVectorStoreComponent
|
from langflow.base.vectorstores.model import LCVectorStoreComponent
|
||||||
from langflow.io import (
|
from langflow.io import (
|
||||||
BoolInput,
|
BoolInput,
|
||||||
|
DataInput,
|
||||||
DropdownInput,
|
DropdownInput,
|
||||||
HandleInput,
|
HandleInput,
|
||||||
IntInput,
|
IntInput,
|
||||||
MultilineInput,
|
MultilineInput,
|
||||||
SecretStrInput,
|
SecretStrInput,
|
||||||
StrInput,
|
StrInput,
|
||||||
DataInput,
|
|
||||||
)
|
)
|
||||||
from langflow.schema import Data
|
from langflow.schema import Data
|
||||||
|
|
||||||
|
|
@ -216,7 +216,7 @@ class AstraVectorStoreComponent(LCVectorStoreComponent):
|
||||||
else:
|
else:
|
||||||
logger.debug("No documents to add to the Vector Store.")
|
logger.debug("No documents to add to the Vector Store.")
|
||||||
|
|
||||||
def search_documents(self):
|
def search_documents(self) -> list[Data]:
|
||||||
vector_store = self.build_vector_store()
|
vector_store = self.build_vector_store()
|
||||||
|
|
||||||
logger.debug(f"Search input: {self.search_input}")
|
logger.debug(f"Search input: {self.search_input}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue