Skip to content

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

Notifications You must be signed in to change notification settings

ChobPT/oobaboogas-webui-langchain_agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages