minor formatting
This commit is contained in:
parent
07815de4e5
commit
68d6fae606
1 changed files with 15 additions and 16 deletions
|
|
@ -35,9 +35,9 @@ class VectaraComponent(CustomComponent):
|
||||||
"code": {"show": False},
|
"code": {"show": False},
|
||||||
"documents": {
|
"documents": {
|
||||||
"display_name": "Documents",
|
"display_name": "Documents",
|
||||||
"info": "Pass in either for Self Query Retriever or for making a Vectara Object"
|
"info": "Pass in either for Self Query Retriever or for making a Vectara Object",
|
||||||
},
|
},
|
||||||
'files_url':{
|
"files_url": {
|
||||||
"display_name": "Files Url",
|
"display_name": "Files Url",
|
||||||
"info": "Make vectara object using url of files(documents not needed)",
|
"info": "Make vectara object using url of files(documents not needed)",
|
||||||
},
|
},
|
||||||
|
|
@ -51,7 +51,6 @@ class VectaraComponent(CustomComponent):
|
||||||
files_url: Optional[List[str]] = None,
|
files_url: Optional[List[str]] = None,
|
||||||
documents: Optional[Document] = None,
|
documents: Optional[Document] = None,
|
||||||
) -> Union[VectorStore, BaseRetriever]:
|
) -> Union[VectorStore, BaseRetriever]:
|
||||||
|
|
||||||
if documents is not None:
|
if documents is not None:
|
||||||
return Vectara.from_documents(
|
return Vectara.from_documents(
|
||||||
documents=documents,
|
documents=documents,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue