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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: querai-0.1.7.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.7.tar.gz
Algorithm Hash digest
SHA256 2eafd7dc7f8e5432b065f779e82151862f147efc23275b3114f1801d756d65a4
MD5 a06ba4ce077e2fe59febb47944c16c6f
BLAKE2b-256 e66ee2b62ef632d5378a4e2f68bfa4903166bc44a0eaddd857332be5f6e74cef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: querai-0.1.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a64fdb0ae32dc0123c414617dab3343ae6b90683a5d99d279105424c83fc8881
MD5 762c72c70541f429649d9a6ecaef4094
BLAKE2b-256 c20c4e55813eca0e2cef533d66bead7c48b18073ea71f4b17e31abfd6a94a3f8

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