Skip to content

Commit

Permalink
Merge branch 'krohling:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
daz-williams authored Oct 8, 2023
2 parents 24fe6d6 + 3d0f79d commit c2093ff
Show file tree
Hide file tree
Showing 23 changed files with 197 additions and 256 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/deploy-website.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Deploy BondAI Website

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '19.7'

- name: Install Docusaurus dependencies
run: |
cd website
npm install
npm run build
- name: Deploy to S3
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_BUCKET: bondai-docs
AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_DEPLOY_AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_DEPLOY_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-west-2'
SOURCE_DIR: 'website/build'

- name: Invalidate CloudFront distribution
uses: chetan/[email protected]
env:
DISTRIBUTION: E1JJN112WBIR8P
PATHS: '/*'
AWS_REGION: 'us-west-2'
AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_DEPLOY_AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_DEPLOY_AWS_SECRET_ACCESS_KEY }}
48 changes: 48 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Deploy to PyPI and DockerHub

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine setuptools_scm
- name: Build and deploy to PyPI
run: |
python setup.py sdist bdist_wheel
twine upload dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }}
- name: Set up Docker
uses: docker/setup-buildx-action@v1

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: ./docker
push: true
tags: |
krohling/bondai:${{ github.ref_name }}
krohling/bondai:latest
304 changes: 65 additions & 239 deletions README.md

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion VERSION

This file was deleted.

Binary file added assets/logos/alpaca-markets-logo.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logos/azure-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logos/blandai-logo.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logos/bondai-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logos/duckduckgo-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logos/gmail-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logos/google-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logos/langchain-logo.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logos/openai-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logos/postgres-logo.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/promo.gif
Binary file not shown.
2 changes: 1 addition & 1 deletion bondai/cli/cli_agent_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def __init__(self, conversational_agent, task_agent, tools):
def get_agent(self):
agent_tools = [t.get_tool_function() for t in self.agent.tools]
return {
'state': self.agent.state,
'state': self.conversational_agent.state,
'previous_steps': self.get_previous_steps(),
'previous_messages': self.conversational_agent.previous_messages,
'tools': agent_tools,
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ tqdm==4.66.1
typing_extensions==4.7.1
tzdata==2023.3
uritemplate==4.1.1
urllib3==1.26.16
urllib3>=1.26.17
w3lib==2.1.2
websocket-client==1.6.3
websockets==10.4
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name="bondai",
version="0.2.23",
use_scm_version=True,
description="An AI-powered console assistant with a versatile API for seamless integration into applications.",
long_description=open("README.md", "r").read(),
long_description_content_type="text/markdown",
Expand All @@ -17,6 +17,7 @@
scripts=['scripts/bondai'],
install_requires=requirements,
include_package_data=True,
setup_requires=['setuptools_scm'], # Add this line
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
Expand Down
Empty file.
12 changes: 0 additions & 12 deletions website/docs/api-spec/rest-apis.md

This file was deleted.

2 changes: 1 addition & 1 deletion website/docs/api-spec/start-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sidebar_position: 6

# Start Agent

`POST /agent/tools`
`POST /agent/start`

This API will start the Agent's execution against the specified task.

Expand Down
13 changes: 13 additions & 0 deletions website/docs/finetuned-agent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
sidebar_position: 9
---

# Finetuned Local LLM

The holy grail is to have a capable Agent that can run fully independent of OpenAI and all other 3rd party hosted models. Unfortunately, current open source models make poor Agents. However, we believe that if a robust enough dataset of Agent interactions can be captured, an open source model can be fine tuned, greatly improving it's Agent capabilities.

If you would like to participate and help this cause, simply enable prompt logging while running BondAI which will store all the LLM prompts and responses. Make a PR to this repository adding your prompt logs to the `prompt-dataset` directory. Note that we will make both the dataset and the resulting models available for free on Github and HuggingFace.

Our goal is to get to a dataset of 50K prompts. Let's see what we can do!

**Note: PLEASE make sure that any logs you share are free of personally identifying or sensitive data as they will be shared publically and used to train future models.**
21 changes: 21 additions & 0 deletions website/docs/roadmap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
sidebar_position: 8
---

# BondAI Roadmap

## Our Mission

BondAI's forward looking goal is to integrate the latest research in building powerful AI Agents and make this functionality easy to use and integrate into any application. Additionally, we intend to expose this functionality to end users via an accessible assistant anyone can install on their own machine. Ultimately, we intend to develop a fully local, privately owned and operated AI system using a local LLM. We want this project to be part of the ecosystem of tools that counterbalance the consolidation of AI power currently owned by large corporations.

## Upcoming Features

- BondAI User Interface *(In Progress)*
- Agent Benchmarks
- Finetuned Llama 2
- ToolMaker - A tool that makes tools ([see paper](https://arxiv.org/abs/2305.17126))
- Tool Repository ([see Voyager paper](https://arxiv.org/abs/2305.16291))
- Multi-Agent Systems Support (MAS) (see [AutoGen paper](https://browse.arxiv.org/pdf/2308.08155.pdf))
- Cognitive Architectures: Reflexion ([see paper](https://arxiv.org/abs/2303.11366))
- Cognitive Architectures: Tree of Thoughts ([see paper](https://arxiv.org/abs/2305.10601))
- Cognitive Architectures: Graph of Thoughts ([see paper](https://arxiv.org/abs/2308.09687))

0 comments on commit c2093ff

Please sign in to comment.