open-webui / pipelines

Pipelines: Versatile, UI-Agnostic OpenAI-Compatible Plugin Framework
MIT License
956 stars 300 forks source link

add a LangGraph example via FastAPI 20240715 #158

Closed dukai289 closed 3 months ago

dukai289 commented 4 months ago

To use LangGraph or LangChain, we build a FastAPI web service.Then we can call this service in openwebui-pipelines

dukai289 commented 4 months ago

I appreciate your work, pipelines truly give us the ability to customize any LLM application. And I hope that in the future I can contribute ideas and code to create better communities and applications.

PlebeiusGaragicus commented 3 months ago

This is EXACTLY what I was working to build!!! This is so powerful!

Bless you!!

PlebeiusGaragicus commented 3 months ago

Wait - why closed and not merged?

I am currently working towards exactly this use-case.

justinh-rahb commented 3 months ago

Pipelines are to be self-contained in a single file, and their input/output is a standard OpenAI API interface.

PlebeiusGaragicus commented 3 months ago

Got it - I was going to fork the pipeline repo and bring in all my agent code, but I think I won't now after doing more digging. I'll continue to keep my pipeline module very simple and run my LangGraph agent as a FastAPI endpoint that the pipeline will call.