Skip to main content

A middle layer between the applications and the LLMs.

Project description

qagent - Query Agent

An abstract layer between applications and genAI.

Installation and Run

Setup credentials

  • In .env file add your own OPENAI_API_KEY key

Run

You need to have poetry installed first.

  1. poetry install

  2. poetry shell

  3. Try one example command below.

Add your own flow

See the first example

Example

  • Example usage of it in a customized usecase:
python tests/realstuff/01_dummy_question.py
  • Example configuration of a prompt flow:
cat qagent/prompts/dialogflow/example-plan/text-to-table.json
  • Run tests to see how it works: See Section Test below

Development

Test

Unitests

python -m unittest discover tests -v

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

querai-0.1.6.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

querai-0.1.6-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

File details

Details for the file querai-0.1.6.tar.gz.

File metadata

  • Download URL: querai-0.1.6.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/21.4.0

File hashes

Hashes for querai-0.1.6.tar.gz
Algorithm Hash digest
SHA256 e065b753439486e2ade9d84b56a739dc64c9ed1aa1fc52ed6be25671ce5e7e15
MD5 286d6cd292ac7576d59e0867433c7358
BLAKE2b-256 c9c71bd65024703fa87a1d147b7de7c93911a01eb991b028757a703bd219e731

See more details on using hashes here.

File details

Details for the file querai-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: querai-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 26.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/21.4.0

File hashes

Hashes for querai-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 26192721fa698faf86fe493a33e89ba5ae14a042e72c028cadc0c76c3332cb03
MD5 2cd2cf3ecbc40a2de318af61ce64e975
BLAKE2b-256 4e6400bb3b94fcd5d152b13748e9eff527367a05180ea47a17a40347ae2fc5f8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page