Skip to main content

Chainbase is a library for instantly creating langchain-based APIs with autoconfiguration for proprietary data.

Project description

Getting Started

To get started with chainbase for your application, visit the docs at https://chainbase.erob.io/

To contribute to chainbase, see the contributing section below.

Contributing

Getting Started Locally

  1. Launch postgres and pgadmin via docker-compose docker-compose up --build.

  2. Keeping your containers running, open a new terminal with the root of this repo as the working directory. Install poetry: pip install poetry (or use pipx on link here if you prefer isolated envs, or consider using conda).

  3. Create and enter the virtual environment: poetry shell

  4. Install the dependencies poetry install

  5. Start the app: uvicorn examples.example_app:auto_app --reload.

  6. Open localhost:8000/v1/docs and start interacting with swagger!

  7. You can shut down and your db / minio data will persist via docker volumes.

MinIO

  • The MinIO console is available at localhost:9001. Login with user:miniouser and password:minioadmin if you launched the containers with docker-compose up --build.

Hooks and Tests

  1. Set up the precommit hook with pre-commit install.

  2. Run tests and get coverage with pytest --cov, and get html reports for vs code live server (or any server) with pytest --cov --cov-report=html:coverage_re

  3. Open a pull request against the repo! Please write tests, your coverage will automatically be added as a comment to any PR via GH actions.

Viewing Docs Locally

  1. Install docs dependencies with pip install -r requirements-docs.txt.
  2. Install mkdocs with pip install mkdocs-material.
  3. Move into the docs/en directory via cd docs/en.
  4. Run mkdocs serve to start a local server.

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

chainbase-0.0.3.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

chainbase-0.0.3-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file chainbase-0.0.3.tar.gz.

File metadata

  • Download URL: chainbase-0.0.3.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.2 Linux/6.2.0-1014-azure

File hashes

Hashes for chainbase-0.0.3.tar.gz
Algorithm Hash digest
SHA256 fd560e7ddad5c7f3c7e3d430ef846df35566a0045b66dfd4d5d3836a61d0a23b
MD5 439296b72355fd8fd2fbf6d893da2718
BLAKE2b-256 e8fc7c6408ddc065852599b07af1c1898e2a0bcc02118ac37e8348fd9b1947bc

See more details on using hashes here.

File details

Details for the file chainbase-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: chainbase-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.2 Linux/6.2.0-1014-azure

File hashes

Hashes for chainbase-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e4c12806ea7ae26e4e0f93ebde961383fb23b4e18731a09eaeeb7c770896b062
MD5 9610489c0dd11116d0f024d694f23a13
BLAKE2b-256 1f1c184767226583959a4f93ffc1fd6395da6735260231db31a380cc296fdbfe

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