Skip to content

Latest commit

 

History

History
47 lines (28 loc) · 2.03 KB

File metadata and controls

47 lines (28 loc) · 2.03 KB

oobaboogas-webui-langchain_agent

This project is on hold as we try to rewrite the concept. The main idea is for it to be as simple as possible to use and dev for, but at the moment thats just not feasible. Feel free to PR if you want to helo.

Currently doing the chain but not outputting directly to chat, working on this as we speak, sorry for the inconvenience

Creates an Langchain Agent which uses the WebUI's API and Wikipedia to work.

This has been reworked to use the openAI API on the Oobabooga's extension, and requirements have been dramatically shrunk down, generated with pipreqs

Tested to be working, I learned python a couple of weeks ago, bear with me.

Needs the openai and no_stream extensions enabled enabled. ( --extensions openai --no-stream added when running the WebUI) Screenshot 2023-05-29 11 50 41 PM Screenshot 2023-05-29 11 49 56 PM

Install with pip install -r requirements.txt

Installation

go to the WebUI folder and

cd extensions;
git clone https://github.com/ChobPT/oobaboogas-webui-langchain_agent/ webui_langchain_agent;
cd webui_langchain_agent;
pip install -r requirements.txt;
cd ../..

Usage

To trigger simply add /do before the instructions so that you can continue the conversation later on with the context

You can basically enable the tools by just using the documentation basics at https://python.langchain.com/en/latest/modules/agents/tools.html and then add the respective tools at

image

Tested with TheBloke_airoboros-13B-GPTQ

RoadMap

Development will be slow! This is something that is worked on on the (rare) spare time, contributions are welcome.

Again, just learned python recently, it kind of works, but it's a start

cheers!