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.8.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: querai-0.1.8.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.8.tar.gz
Algorithm Hash digest
SHA256 9e41e9a2f36142126411e16632cd0f06f6480d6ba1e4ffec7944d40c5c21a3cf
MD5 386b7efbb4d469644d32432c0578f953
BLAKE2b-256 1bf94603f1b7f94ce21a8732a4c4b5c61d63d3c158de6d73a06b95c3d4ce1831

See more details on using hashes here.

File details

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

File metadata

  • Download URL: querai-0.1.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 efbe2ccb02e352c5844e2d4a1212f2ef8df6a2af4c52418adfbd1bc799983f84
MD5 5a329f0fbfa75de5a706bb0746e0a4c0
BLAKE2b-256 d9d33ef68dbea06aaa1839343699e1cfe205794420a445f11065450a406095e7

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