Add AstraDB icon and field order to AstraDBVectorStoreComponent and AstraDBSearchComponent
This commit is contained in:
parent
395f75f5bd
commit
569d384573
6 changed files with 43 additions and 0 deletions
|
|
@ -10,6 +10,8 @@ from langflow.schema import Record
|
|||
class AstraDBVectorStoreComponent(CustomComponent):
|
||||
display_name = "AstraDB Vector Store"
|
||||
description = "Builds or loads an AstraDB Vector Store"
|
||||
icon = "AstraDB"
|
||||
field_order = ["token", "api_endpoint", "collection_name", "inputs", "embedding"]
|
||||
|
||||
def build_config(self):
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@ from langflow.schema import Record
|
|||
class AstraDBSearchComponent(AstraDBVectorStoreComponent, LCVectorStoreComponent):
|
||||
display_name = "AstraDB Search"
|
||||
description = "Searches an existing AstraDB Vector Store"
|
||||
icon = "AstraDB"
|
||||
field_order = ["token", "api_endpoint", "collection_name", "input_value", "embedding"]
|
||||
|
||||
def build_config(self):
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue