Skip to main content

Common infrastructure for Shraga AI

Project description

Shraga

The backend is based on FastAPI and frontend is based on React.

Backend setup:

Requirements:

  1. Python3.11
  2. Pip
  3. Poetry

Install poetry and add it to $PATH run

pipx install poetry

Once poetry is installed, install dependencies:

poetry install --no-root
poetry run pre-commit install

To activate the virtualenv run the following:

poetry shell
which python

Running the app

To run the app use:

SHRAGA_FLOWS_PATH=flows CONFIG_PATH=config.demo.yaml uvicorn main:app --reload

cd frontend
pnpm run dev

demo flow

Run demo flow without an LLM \ Elasticsearch \ Opensearch:

  1. use config.demo.yaml for settings
  2. To run the backend use:
SHRAGA_FLOWS_PATH=flows CONFIG_PATH=config.demo.yaml uvicorn main:app --reload

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

shraga_common-0.1.3.tar.gz (50.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shraga_common-0.1.3-py3-none-any.whl (83.3 kB view details)

Uploaded Python 3

File details

Details for the file shraga_common-0.1.3.tar.gz.

File metadata

  • Download URL: shraga_common-0.1.3.tar.gz
  • Upload date:
  • Size: 50.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.11.2 Linux/6.8.0-57-generic

File hashes

Hashes for shraga_common-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c4d59038cc2be2fad838cc7e21f9da822ac2bfe75ad77c59ff2b37444202fcb6
MD5 178af859be4815e1faba4c879bc51e01
BLAKE2b-256 b4bcfd790cc097d4d44e873e8a0b78ef134febf3376a9b1a2b1ebd345bb0ed30

See more details on using hashes here.

File details

Details for the file shraga_common-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: shraga_common-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 83.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.11.2 Linux/6.8.0-57-generic

File hashes

Hashes for shraga_common-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5215208cfb6308180b1cba629e8d243aed5bb76d135f56a707684b79a02ba4b2
MD5 ed0b9cc042b872e5c4471e4f503aff71
BLAKE2b-256 cb92486d8ea573bf03fcab3374bd00dbafed9501c617cfd3f0ca4d2bd0b9d002

See more details on using hashes here.

Supported by

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