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
-
Clone the repo:
git clone https://github.com/yourusername/weaviate-agent-demo.git cd weaviate-agent-demo
-
Install Poetry (if not already installed):
curl -sSL https://install.python-poetry.org | python3 -
-
Install the project dependencies with Poetry:
poetry install
-
Activate the virtual environment:
poetry shell
-
Run a Weaviate instance (e.g., with Docker):
-
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
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50ebee57429435819d0e1d5207131bc4c5758e9150ab4adbb411c21bd45aa3dd |
|
MD5 | 8dec1919256d02fd538250a48057f6d8 |
|
BLAKE2b-256 | 5122357d5c5147a6e4d7dbecf6d8cf85d2f114ae00c959516402a6cdc0057123 |
File details
Details for the file weaviate_agent_demo-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: weaviate_agent_demo-0.3.0-py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.4 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4b149063f5badbadb2a33c58b5539eecd8e82f10b222cc4bcf7532313db6de8 |
|
MD5 | 6678cca6a4c750f4e96a5d2e0fc5bb6c |
|
BLAKE2b-256 | 9fc75bc95e5194741d116cbec08346959f1104e01ff5595c1adf524b08ebee49 |