Skip to main content

Backend of a system to explore RAG operations (formerly published as raglab)

Project description

raglab_bak

Backend of a system to explore RAG operations.

(Formerly published as raglab; renamed to raglab_bak — "raglab backend" — to free the raglab name for a new project. Import as raglab_bak.)

To install: pip install raglab_bak

IMPORTANT NOTE: This is work-in-progress and shouldn't be used, yet.

raglab_bak is meant to be a medley of interoperable functionalities around retrieval (or "search") and generation (with LLMs). It's architecture is structured so that operations can be done in python, at the command line, through a web service (or any OpenAPI language binders) or from a GUI, where each layer's interface is mapped from the other in a consistent (and usually automatic) manner.

Work-in-progress notes

Simple resources CRUD

Some functionalities/operations can simply be described as (1) a set of operations (2) over a kind of data

We'll sometimes lazily say CRUD for the "set of operations", but we don't always mean Create-Read-Update-Delete. In fact, most of the time we don't mean those four operations. Instead, since python is our backend language and we aim at using base interfaces as much as possible, our "set of operations" will often be inspired from python's Collections Abstract Base Classes.

So many concrete use cases of this abstraction are parametrized by

  • the set of operation (example, read, write, list, delete...)
  • a name designating the kind/type of data
  • optionally a schema that describes what the structure and contents of that kind of data must be

Further, by making the interface consistent (for example, and preferably, with the interfaces of Collections Abstract Base Classes), it makes it possible to automate how the python interface maps to a REST API interface (see Mapping python collections builtin methods to REST API patterns) and/or a UI interface (see Collections Operations UI Design Patterns).

Examples

  • permissions (keyed by users, groups of users, projects etc.)
  • datasets (again keyed by users etc.)
  • prompt_templates
  • embedders
  • dataset_query_results
  • query_results_aggregators
  • query_results_aggregates
  • tag: For example tag, dataset, tag, group_of_datasets, tag, anything_really. Note that tagging, or annotating can be applied to any kind of data, and is a dual of "grouping", and subsumes hierarchical organization. See Persisting groups of items (tagging stuff) for designs regarding this.

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

raglab_bak-0.1.3.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

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

raglab_bak-0.1.3-py3-none-any.whl (82.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: raglab_bak-0.1.3.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for raglab_bak-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e2044f66d7ed52fd61ba68be02606c4b6c84548ba84ae170c8009b24b3b9aab5
MD5 35b40cd26d788817db079fa65709b008
BLAKE2b-256 65c1f9b2b52558932eaa424ca46201fcdd946f123c0ee29d8e6874742c8429ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: raglab_bak-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 82.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for raglab_bak-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1f5755d097c650b8ecc492a0f61d40fa807badf1d28c6f544e1f8cf9ff9e9b14
MD5 20e3cd6ce8d17d97ceed40449703c340
BLAKE2b-256 c050fc41478d8b733db4e06a3a315cd054ea3873bcff66517187cd9a079aad7b

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