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.0.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

weaviate_agent_demo-0.3.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: weaviate_agent_demo-0.3.0.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.0.tar.gz
Algorithm Hash digest
SHA256 50ebee57429435819d0e1d5207131bc4c5758e9150ab4adbb411c21bd45aa3dd
MD5 8dec1919256d02fd538250a48057f6d8
BLAKE2b-256 5122357d5c5147a6e4d7dbecf6d8cf85d2f114ae00c959516402a6cdc0057123

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for weaviate_agent_demo-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b4b149063f5badbadb2a33c58b5539eecd8e82f10b222cc4bcf7532313db6de8
MD5 6678cca6a4c750f4e96a5d2e0fc5bb6c
BLAKE2b-256 9fc75bc95e5194741d116cbec08346959f1104e01ff5595c1adf524b08ebee49

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