Add GitbookLoader import and update metadata field type

This commit is contained in:
anovazzi1 2024-01-10 15:30:34 -03:00
commit 2375dd31b2

View file

@ -1,6 +1,7 @@
from langflow import CustomComponent
from langflow.field_typing import Document
from typing import Optional, Dict
from langchain_community.document_loaders.gitbook import GitbookLoader
class GitbookLoaderComponent(CustomComponent):
@ -11,7 +12,8 @@ class GitbookLoaderComponent(CustomComponent):
return {
"metadata": {
"display_name": "Metadata",
"default": {},
"field_type":"dict",
"value": {},
},
"web_page": {
"display_name": "Web Page",