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_setupto 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
Metadata
Release files for weaviate-agent-demo 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| weaviate_agent_demo-0.3.1.tar.gz | 13.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| weaviate_agent_demo-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.8 kB
Release files / weaviate_agent_demo-0.3.1.tar.gz
| Download URL | weaviate_agent_demo-0.3.1.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
59be03c39e3e140f59836d7bffa293682a33bb132483b154f8de34eb86bce2fe
|
|
BLAKE2b-256 checksum How to use checksums |
02ae5b43c62a4ae3c8e5accca7459ebd7aa825c2163105d44e20b25053899eee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.4 Darwin/23.6.0
|
Release files / weaviate_agent_demo-0.3.1-py3-none-any.whl
| Download URL | weaviate_agent_demo-0.3.1-py3-none-any.whl |
|---|---|
| Size | 17.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
885010bd1e9f8c10e8b5e46669bd4d882beb0246856098bc37112587586b7183
|
|
BLAKE2b-256 checksum How to use checksums |
88ae4bdf6f2a49b16d46b83a9d24750097ea6cef5a602045ca94b732d4aeefbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.4 Darwin/23.6.0
|