https://github.com/run-llama/llama-lab
https://github.com/run-llama/llama-lab
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/run-llama/llama-lab
- Owner: run-llama
- Created: 2023-04-14T02:43:49.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-09T10:03:30.000Z (over 1 year ago)
- Last Synced: 2025-04-14T15:00:34.539Z (about 1 month ago)
- Language: Python
- Size: 101 KB
- Stars: 1,466
- Watchers: 17
- Forks: 173
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-ChatGPT-repositories - llama-lab - if you build a space with @gpt_index, just fill out this form here! credits for llama agi go to logan, who helped to pioneer this from scratch: (Langchain)
- awesome - run-llama/llama-lab - (Python)
README
# ๐ฆ๐งช Llama Lab ๐งฌ๐ฆ
Llama Lab is a repo dedicated to building cutting-edge projects using [LlamaIndex](https://github.com/jerryjliu/llama_index).
LlamaIndex is an interface for LLM data augmentation. It provides easy-to-use and flexible tools to index
various types of data. At its core, it can be used to index a knowledge corpus. But it can also be used
to index tasks, and provide memory-like capabilities for any outer agent abstractions.Here's an overview of some of the amazing projects we're exploring:
- llama_agi (a [babyagi](https://github.com/yoheinakajima/babyagi) and [AutoGPT](https://github.com/Significant-Gravitas/Auto-GPT) inspired project to create/plan/and solve tasks)
- auto_llama (an [AutoGPT](https://github.com/Significant-Gravitas/Auto-GPT) inspired project to search/download/query the Internet to solve user-specified tasks).Each folder is a stand-alone project. See below for a description of each project along with usage examples.
**Contributing**: We're very open to contributions! This can include the following:
- Extending an existing project
- Create a new Llama Lab project
- Modifying capabilities in the core [LlamaIndex](https://github.com/jerryjliu/llama_index) repo in order to support Llama Lab projects.## Current Labs
### llama_agi (v0.1.0)
Inspired from [babyagi](https://github.com/yoheinakajima/babyagi) and [AutoGPT](https://github.com/Significant-Gravitas/Auto-GPT), using LlamaIndex as a task manager and LangChain as a task executor.
The current version of this folder will start with an overall objective ("solve world hunger" by default), and create/prioritize the tasks needed to achieve that objective. LlamaIndex is used to create and prioritize tasks, while LangChain is used to guess the "result" of completing each action.
Using LangChain and LlamaIndex, llama_agi has access to the following tools: google-search, webpage reading, and note-taking. Note that the google-search tool requires [a Google API key and a CSE ID](https://cse.google.com/cse/).
This will run in a loop until the task list is empty (or maybe you run out of OpenAI credits ๐).
For more info, see the README in the [llama_agi folder](./llama_agi/README.md) or the [pypi page](https://pypi.org/project/llama-agi/).
### auto_llama
Inspired by [autogpt](https://github.com/Significant-Gravitas/Auto-GPT). This implement its own Agent system similar to AutoGPT.
Given a user query, this system has the capability to search the web and download web pages, before analyzing the combined data and compiling a final answer to the user's prompt.Example usage:
```bash
cd auto_llama
pip install -r requirements.txt
python -m auto_llama
Enter what you would like AutoLlama to do:
Summarize the financial news from the past week.```
### Conversational Agents
This is a fun conversational simulator between different agents. You can choose
to provide some details about the context/setting, and watch as the conversation
between different agents evolves.A sample notebook is provided in the `convo_agents` folder. Usage:
```bash
cd convo_agentsjupyter notebook ConvoAgents.ipynb
```### External projects
We also provide references to other project repos using LlamaIndex in novel ways.
These repos are hosted as submodules in our `external` folder.
Check it out here: https://github.com/run-llama/llama-lab/tree/main/external
## Ecosystem
Llama Lab is part of the broader Llama ecosystem.
- [LlamaIndex](https://github.com/jerryjliu/llama_index)
- [LlamaHub](https://llamahub.ai/) ([repo](https://github.com/emptycrown/llama-hub))Community:
- [Twitter](https://twitter.com/llama_index)
- [Discord](https://discord.gg/dGcwcsnxhU)