About
PyAQ is an open-source reference implementation of the semantic broker, a low-code platform for cognitive applications using large language models.
Unlike interactive GPT chatbots and copilots, cognitive applications can run entirely unattended. They do not sacrifice precision for speed and can run longer to process more data, use different types of larger AI models, or launch long-running jobs via connected enterprise applications and robotic systems.
Make sure to check out sample apps in the examples/apps directory:
- enrich.yml - enrich sales leads by searching the web
- extract.yml - extract contact information from emails
- investments.yml - generate investment advice based on a market report
- rag.yml - answer a question using information in a pdf document
- qna.yml - answer multiple questions by spawning several workers
For more information visit us at https://anyquest.ai.
By releasing AnyQuest PyAQ as open source, we hope to stimulate innovation in the broader generative AI community. Until now, the focus of the community has been on building bigger and better models. But models do not deliver value. Value is delivered by applications enabled by these models.
Here are just some ideas to explore with AnyQuest PyAQ:
- Cognitive applications
- Knowledge management
- Question answering
- Hyper personalization
- Intelligent automation
- Idea generation and research
- Platform extensions
- Models: open-source, edge AI
- Tools: connectors to CRM, ERP, supply chains, marketing automation, etc.
- Tasks: multi-modal primitives for video, audio, and images.
- Memory: structured data, flat files, cloud storage
- Tools
- No-code cognitive application designers
- Cognitive application copilots
- Prompt engineering and rewriting
- Verification, validation, and security of cognitive apps
- LLM operations
- Performance optimization and parallelism
Installation
Operating System
These instructions were prepared for Linux and MacOS. Some modifications may be required on Windows.
Python
PyAQ requires Python 3.10 or 3.11.
You can check the version of Python installed on your machine by opening a terminal window and running
> python3 --version
or
> python --version
Virtual Environment
Create and activate the virtual Python environment:
- Open a terminal window
- Change to the directory of this file
- Run the following commands at the command prompt
Linux or Mac:
> python -m venv venv
> source venv/bin/activate
> pip install poetry
> poetry install --no-root
> pip install jupyter
Windows:
> python -m venv venv
> venv\Scripts\activate
> pip install poetry
> poetry install --no-root
> pip install jupyter
API Keys
At the root folder of the source tree, create a file named .env containing the following:
OPENAI_API_KEY=<Your OpenAI API key>
ANTHROPIC_API_KEY=<Your Anthropic API key>
AZURE_API_KEY=<Your Azure API key>
AZURE_API_VERSION=<Azure API version>
AZURE_DEPLOYMENT=<Azure Model deployment>
AZURE_ENDPOINT=<Azure endpoint>
GOOGLE_CSE_CX=<Your Google Programmable Search Engine ID>
GOOGLE_CSE_KEY=<Your Google Programmable Search Engine API Key>
The OpenAI API key is required since most examples depend on it. Google CSE settings are required by the web tool. If you do not have Anthropic or Azure API keys, you can still run all examples but will need to replace the corresponding models with the ones provided by OpenAI.
Examples
To run the examples, switch to the examples directory and launch Jupyter:
> cd examples
> jupyter notebook examples.ipynb
You can now run the notebook cells one-by-one starting from the top.
Metadata
Release files for pyaq 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyaq-0.1.0.tar.gz | 22.1 kB | Without provenance | Details for pyaq-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyaq-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pyaq-0.1.0-py3-none-any.whl |
Total release size: 58.6 kB
Release files / pyaq-0.1.0.tar.gz
| Download URL | pyaq-0.1.0.tar.gz |
|---|---|
| Size | 22.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c34ec44f3ab3e9a2cc915a47a91ab3b0746036b0810ee82f4a23d9e65b20945
|
|
BLAKE2b-256 checksum How to use checksums |
787bd5d064824c07c8d089acdf8a885097fa934626508beed32a20d18f36ba5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.0 Darwin/23.2.0
|
Release files / pyaq-0.1.0-py3-none-any.whl
| Download URL | pyaq-0.1.0-py3-none-any.whl |
|---|---|
| Size | 36.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8829c8bacb8cf37bf8a51cd9951827d014e5d878b2a45abeb768ee411a35ad79
|
|
BLAKE2b-256 checksum How to use checksums |
5385e7afce614a9158ce443656e409503519c61216a397476592b2958d1e4bba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.0 Darwin/23.2.0
|
Security for pyaq 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.