[GH-ISSUE #2134] [FEAT]: Langchain SDK integration #1387

Closed
opened 2026-02-22 18:24:33 -05:00 by yindo · 4 comments
Owner

Originally created by @computersrmyfriends on GitHub (Aug 17, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2134

What would you like to see?

I'm considering developing using AnythingLLM rest APIs for my new LLM project but would it be possible to have AnythingLLM as a LLM/tool linked to langchain?

That would make it possible to use an open standard by calling langchain instead of a proprietary API.

Just like switching models within langchain, I'd love to use AnythingLLM as a node so all the settings+prompts+workspaces can be configured via the AnythingLLM GUI while the output works through langchain code.

This would benefit a lot of developers.

Originally created by @computersrmyfriends on GitHub (Aug 17, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2134 ### What would you like to see? I'm considering developing using AnythingLLM rest APIs for my new LLM project but would it be possible to have AnythingLLM as a LLM/tool linked to langchain? That would make it possible to use an open standard by calling langchain instead of a proprietary API. Just like switching models within langchain, I'd love to use AnythingLLM as a node so all the settings+prompts+workspaces can be configured via the AnythingLLM GUI while the output works through langchain code. This would benefit a lot of developers.
yindo added the enhancementfeature request labels 2026-02-22 18:24:33 -05:00
yindo closed this issue 2026-02-22 18:24:34 -05:00
Author
Owner

@timothycarambat commented on GitHub (Aug 18, 2024):

So using AnythingLLM as a chatModel in Langchain, correct? I presume you are using langchain for python? They offer a couple SDKs, but we dont have a community integration to any at this time.

@timothycarambat commented on GitHub (Aug 18, 2024): So using AnythingLLM as a `chatModel` in Langchain, correct? I presume you are using langchain for python? They offer a couple SDKs, but we dont have a `community` integration to any at this time.
Author
Owner

@computersrmyfriends commented on GitHub (Aug 19, 2024):

yes,Using Anything LLM on the chain seems like a more efficient approach than trying to assemble all the components from scratch within Langchain. Deploying Anything LLM and leveraging its API would simplify the process. However, I understand that the API is custom. It would be highly beneficial if it were compatible with the OpenAI format and easily pluggable into LangChain.

@computersrmyfriends commented on GitHub (Aug 19, 2024): yes,Using Anything LLM on the chain seems like a more efficient approach than trying to assemble all the components from scratch within Langchain. Deploying Anything LLM and leveraging its API would simplify the process. However, I understand that the API is custom. It would be highly beneficial if it were compatible with the OpenAI format and easily pluggable into LangChain.
Author
Owner

@timothycarambat commented on GitHub (Aug 19, 2024):

We do have OpenAI Compatible endpoints. In theory you would just replace the baseURL, API token works the same and in the case of model as the param key you would use a workspace's slug. I think this is the easiest way forward for an integration with Langchain

Screenshot 2024-08-19 at 10 22 01 AM
@timothycarambat commented on GitHub (Aug 19, 2024): We do have OpenAI Compatible endpoints. In theory you would just replace the baseURL, API token works the same and in the case of `model` as the param key you would use a `workspace`'s slug. I think this is the easiest way forward for an integration with Langchain <img width="1506" alt="Screenshot 2024-08-19 at 10 22 01 AM" src="https://github.com/user-attachments/assets/f434af9c-7077-4032-963d-0231801e6692">
Author
Owner

@computersrmyfriends commented on GitHub (Aug 19, 2024):

oh okay, that works for now. Thank you.

@computersrmyfriends commented on GitHub (Aug 19, 2024): oh okay, that works for now. Thank you.
yindo changed title from [FEAT]: Langchain SDK integration to [GH-ISSUE #2134] [FEAT]: Langchain SDK integration 2026-06-05 14:40:30 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#1387