Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft / WIP: Add latest Airbyte loader (do not merge) #1611

Draft
wants to merge 3 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/backend/base/langflow/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ agents:
SQLAgent:
documentation: ""
documentloaders:
AirbyteLoader:
documentation: "https://python.langchain.com/docs/integrations/providers/airbyte/#airbyteloader"
AirbyteJSONLoader:
documentation: "https://python.langchain.com/docs/modules/data_connection/document_loaders/integrations/airbyte_json"
CoNLLULoader:
Expand Down
9 changes: 8 additions & 1 deletion src/backend/base/langflow/utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,16 @@ def python_function(text: str) -> str:


LOADERS_INFO: List[Dict[str, Any]] = [
{
"loader": "AirbyteLoader",
"name": "Airbyte",
"import": "langchain_airbyte.AirbyteLoader",
"defaultFor": ["jsonl"],
"allowdTypes": ["jsonl"],
},
{
"loader": "AirbyteJSONLoader",
"name": "Airbyte JSON (.jsonl)",
"name": "Airbyte JSON (Deprecated)",
"import": "langchain_community.document_loaders.AirbyteJSONLoader",
"defaultFor": ["jsonl"],
"allowdTypes": ["jsonl"],
Expand Down
2 changes: 1 addition & 1 deletion src/backend/base/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ nest-asyncio = "^1.6.0"
emoji = "^2.11.0"
cryptography = "^42.0.5"
langchain-openai = "^0.1.1"

langchain-airbyte = "^0.1.0"

[tool.poetry.group.dev.dependencies]
pytest-asyncio = "^0.21.1"
Expand Down
1 change: 1 addition & 0 deletions src/frontend/src/utils/styleUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ export const nodeIconsLucide: iconsType = {
Vectara: VectaraIcon,
ArrowUpToLine: ArrowUpToLine,
Chroma: ChromaIcon,
AirbyteLoader: AirbyteIcon,
AirbyteJSONLoader: AirbyteIcon,
AmazonBedrockEmbeddings: AWSIcon,
Amazon: AWSIcon,
Expand Down
Loading