Treesequence_LLM_Viz
Query based Code Generation and Analysis of Tree-Sequence using LLM.
Goal
The goal is to leverage Large-language Models(LLM) to generate code and analyze tree-sequences using tskit by simply asking questions in plain English. With Retrieval-Augmented Generation (RAG), users can input questions in plain English, and the system will generate executable tskit code to answer these queries.
Current Version:
In this initial proof-of-concept, the tskit source code is used as a knowledge base for the Large Language Model (LLM). When users input queries in natural language, the LLM generates the appropriate code based on the knowledge and returns a python function as a response.
Current version is a naive prompt:answer approach which does not evaluate the accuracy of the generated code.
Next things to do.
- Code generation can be improved using Flow Engineering Approach. Use LangGraph and openai Function Calling to setup the workflow.
- Code execution with error checking.
- Multiple Iterations.
- Terminal chat interface / UI interface (flask-reactjs)
- human-in-the-loop. (human intervention to review the code or correct it.)
- Additional node(tool) to ask general tree-sequence question that are not related to code-generation.
- Accuracy/reliability of the generated answer.
Exploration
- How to enhance treesequence analysis. one way is MemoRAG. Memory-based knowledge discovery for long contexts.
Metadata
Release files for lorax-ai 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| lorax_ai-0.1.0.tar.gz | 77.4 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lorax_ai-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 154.7 MB
Release files / lorax_ai-0.1.0.tar.gz
| Download URL | lorax_ai-0.1.0.tar.gz |
|---|---|
| Size | 77.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d8a2192f11ae7843e66310fea23cdd0753830d0bb0090425a58d8f254b44a2e
|
|
BLAKE2b-256 checksum How to use checksums |
ae0182037e35a940a68e814bb68b9f380fc4c08f57096da87b5bdbf1d0e76f9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.10
|
Release files / lorax_ai-0.1.0-py3-none-any.whl
| Download URL | lorax_ai-0.1.0-py3-none-any.whl |
|---|---|
| Size | 77.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ae2d1fd80f5f5d987978709ca4c13eb56aa8ab9c32d8a1bb8861751b7433040
|
|
BLAKE2b-256 checksum How to use checksums |
449d8454225c3fbc1bb15a65e623db9740d50344f5ff7cd4f6c0db684de55d0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.10
|
Security for lorax-ai 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.