Refactor RedisComponent in vectorstores
This commit is contained in:
parent
8dfcd06d46
commit
fd4918f334
1 changed files with 4 additions and 2 deletions
|
|
@ -29,7 +29,10 @@ class RedisComponent(CustomComponent):
|
|||
"code": {"show": False, "display_name": "Code"},
|
||||
"documents": {"display_name": "Documents", "is_list": True},
|
||||
"embedding": {"display_name": "Embedding"},
|
||||
"redis_server_url": {"display_name": "Redis Server Connection String", "advanced": False},
|
||||
"redis_server_url": {
|
||||
"display_name": "Redis Server Connection String",
|
||||
"advanced": False,
|
||||
},
|
||||
"redis_index_name": {"display_name": "Redis Index", "advanced": False},
|
||||
}
|
||||
|
||||
|
|
@ -53,7 +56,6 @@ class RedisComponent(CustomComponent):
|
|||
- VectorStore: The Vector Store object.
|
||||
"""
|
||||
|
||||
|
||||
return Redis.from_documents(
|
||||
documents=documents, # type: ignore
|
||||
embedding=embedding,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue