mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-25 11:10:43 +08:00
Refactor RedisComponent in vectorstores
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user