[PR #4544] update langchain-python-rag-document example to use latest langchain apis #16791

Open
opened 2026-04-16 05:43:14 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/4544
Author: @pixelsoccupied
Created: 5/20/2024
Status: 🔄 Open

Base: mainHead: update-langchain-example


📝 Commits (1)

  • ebf8b72 update langchain-python-rag-document example to use latest langchain apis

📊 Changes

2 files changed (+127 additions, -118 deletions)

View changed files

📝 examples/langchain-python-rag-document/main.py (+28 -24)
📝 examples/langchain-python-rag-document/requirements.txt (+99 -94)

📄 Description

Hello!

Langchain library went through a lot changes since this helpful example was first added and users will find that this will not work out of box anymore.

I have updated this to work with all the latest changes and also removed any deprecated functions.

Hope others find this useful!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/4544 **Author:** [@pixelsoccupied](https://github.com/pixelsoccupied) **Created:** 5/20/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `update-langchain-example` --- ### 📝 Commits (1) - [`ebf8b72`](https://github.com/ollama/ollama/commit/ebf8b7251ce20d2238a300f7d030d9841eb0d20e) update langchain-python-rag-document example to use latest langchain apis ### 📊 Changes **2 files changed** (+127 additions, -118 deletions) <details> <summary>View changed files</summary> 📝 `examples/langchain-python-rag-document/main.py` (+28 -24) 📝 `examples/langchain-python-rag-document/requirements.txt` (+99 -94) </details> ### 📄 Description Hello! Langchain library went through a lot changes since this helpful example was first added and users will find that this will not work out of box anymore. I have updated this to work with all the latest changes and also removed any deprecated functions. Hope others find this useful! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 05:43:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#16791