Skip to content

Update samples to use upstream langchain #152

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

Merged
merged 1 commit into from
Feb 14, 2024
Merged
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: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ The Pebblo SafeLoader can be enabled with few lines of code change to the above

```python
from langchain.document_loaders.csv_loader import CSVLoader
from pebblo_langchain.langchain_community.document_loaders.pebblo import PebbloSafeLoader
from langchain_community.document_loaders.pebblo import PebbloSafeLoader

loader = PebbloSafeLoader(
CSVLoader(file_path),
Expand Down
2 changes: 1 addition & 1 deletion docs/gh_pages/docs/rag.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The Pebblo SafeLoader can be enabled with few lines of code change to the above

```python
from langchain.document_loaders.csv_loader import CSVLoader
from pebblo_langchain.langchain_community.document_loaders.pebblo import PebbloSafeLoader
from langchain_community.document_loaders.pebblo import PebbloSafeLoader

loader = PebbloSafeLoader(
CSVLoader(file_path),
Expand Down
2 changes: 1 addition & 1 deletion docs/gh_pages/rag.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The Pebblo SafeLoader can be enabled with few lines of code change to the above

```python
from langchain.document_loaders.csv_loader import CSVLoader
from pebblo_langchain.langchain_community.document_loaders.pebblo import PebbloSafeLoader
from langchain_community.document_loaders.pebblo import PebbloSafeLoader

loader = PebbloSafeLoader(
CSVLoader(file_path),
Expand Down
2 changes: 1 addition & 1 deletion samples/langchain/acme-corp-rag/acme_corp_rag_pebblo.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from langchain_community.vectorstores.utils import filter_complex_metadata
from typing import List

from pebblo_langchain.langchain_community.document_loaders.pebblo import PebbloSafeLoader
from langchain_community.document_loaders.pebblo import PebbloSafeLoader

# Fill-in OPENAI_API_KEY in .env file
# in this directory before proceeding
Expand Down
3 changes: 1 addition & 2 deletions samples/langchain/acme-corp-rag/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
langchain>=0.1.2
langchain>=0.1.7
langchain-community
langchain-openai
pebblo-langchain
chromadb==0.4.7
python-dotenv==1.0.0
tiktoken
Expand Down