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.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59be03c39e3e140f59836d7bffa293682a33bb132483b154f8de34eb86bce2fe |
|
MD5 | 1786fcf503c7c80ca23d064d1550a711 |
|
BLAKE2b-256 | 02ae5b43c62a4ae3c8e5accca7459ebd7aa825c2163105d44e20b25053899eee |
File details
Details for the file weaviate_agent_demo-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: weaviate_agent_demo-0.3.1-py3-none-any.whl
- Upload date:
- Size: 17.8 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 | 885010bd1e9f8c10e8b5e46669bd4d882beb0246856098bc37112587586b7183 |
|
MD5 | 1c5a199846c0650268a44fa706e968ca |
|
BLAKE2b-256 | 88ae4bdf6f2a49b16d46b83a9d24750097ea6cef5a602045ca94b732d4aeefbf |