Skip to main content

Demo project for sometimes (poorly) generating Python code for Weaviate

Project description

Weaviate Agent Demo

AI-powered demo app to help you use Weaviate, with a twist.

To install it, pip install the package with:

pip install weaviate-agent-demo

CLI commands

Then, try out the different CLI commands set up in src/weaviate_agent_demo/cli.py, or in pyproject.toml.

e.g.:

  • ask_llm
  • ask_basic_ragbot
  • ask_ragbot_with_reformulation
  • ask_ragbot_with_tools
  • safely_ask_ragbot_with_tools
  • ask_weaviate_agent

Dev setup

  1. Clone the repo:

    git clone https://github.com/yourusername/weaviate-agent-demo.git
    cd weaviate-agent-demo
    
  2. Install Poetry (if not already installed):

    curl -sSL https://install.python-poetry.org | python3 -
    
  3. Install the project dependencies with Poetry:

    poetry install
    
  4. Activate the virtual environment:

    poetry shell
    
  5. Run a Weaviate instance (e.g., with Docker):

  6. Run the files in src/weaviate_agent_demo/db_setup to ingest data:

    python src/weaviate_agent_demo/db_setup/1_create_collection.py
    python src/weaviate_agent_demo/db_setup/2_import.py
    
  7. You can now use the CLI commands, for example:

    ask_llm
    

    Then, when prompted - try queries like "How do I connect to Weaviate", or "How do I use filters with dates in hybrid search?"

Streamlit app

There is also a Streamlit app available. Try it with:

streamlit run app.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

weaviate_agent_demo-0.3.1.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

weaviate_agent_demo-0.3.1-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file weaviate_agent_demo-0.3.1.tar.gz.

File metadata

  • Download URL: weaviate_agent_demo-0.3.1.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.4 Darwin/23.6.0

File hashes

Hashes for weaviate_agent_demo-0.3.1.tar.gz
Algorithm Hash digest
SHA256 59be03c39e3e140f59836d7bffa293682a33bb132483b154f8de34eb86bce2fe
MD5 1786fcf503c7c80ca23d064d1550a711
BLAKE2b-256 02ae5b43c62a4ae3c8e5accca7459ebd7aa825c2163105d44e20b25053899eee

See more details on using hashes here.

File details

Details for the file weaviate_agent_demo-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for weaviate_agent_demo-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 885010bd1e9f8c10e8b5e46669bd4d882beb0246856098bc37112587586b7183
MD5 1c5a199846c0650268a44fa706e968ca
BLAKE2b-256 88ae4bdf6f2a49b16d46b83a9d24750097ea6cef5a602045ca94b732d4aeefbf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page