Lorax is AI tool assistant to analyze and visualize trees
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lorax_ai-0.1.0.tar.gz.
File metadata
- Download URL: lorax_ai-0.1.0.tar.gz
- Upload date:
- Size: 77.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d8a2192f11ae7843e66310fea23cdd0753830d0bb0090425a58d8f254b44a2e
|
|
| MD5 |
125906c7b2ca185d2f3228f45b9c4a1f
|
|
| BLAKE2b-256 |
ae0182037e35a940a68e814bb68b9f380fc4c08f57096da87b5bdbf1d0e76f9a
|
File details
Details for the file lorax_ai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lorax_ai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 77.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ae2d1fd80f5f5d987978709ca4c13eb56aa8ab9c32d8a1bb8861751b7433040
|
|
| MD5 |
d09bbf8e6bc1884207926843fff5e654
|
|
| BLAKE2b-256 |
449d8454225c3fbc1bb15a65e623db9740d50344f5ff7cd4f6c0db684de55d0a
|