AnyQuest Semantic Broker
Project description
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.
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 pyaq-0.1.0.tar.gz
.
File metadata
- Download URL: pyaq-0.1.0.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.0 Darwin/23.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c34ec44f3ab3e9a2cc915a47a91ab3b0746036b0810ee82f4a23d9e65b20945 |
|
MD5 | 7408b302a2bf6e25265db371bf207907 |
|
BLAKE2b-256 | 787bd5d064824c07c8d089acdf8a885097fa934626508beed32a20d18f36ba5b |
File details
Details for the file pyaq-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pyaq-0.1.0-py3-none-any.whl
- Upload date:
- Size: 36.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.0 Darwin/23.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8829c8bacb8cf37bf8a51cd9951827d014e5d878b2a45abeb768ee411a35ad79 |
|
MD5 | 3906ec006c3407e474826b7ff494dce7 |
|
BLAKE2b-256 | 5385e7afce614a9158ce443656e409503519c61216a397476592b2958d1e4bba |