rootCircle / cpast_llm

[WIP] LLM for clex language for cpast

Home Page:https://github.com/rootCircle/cpast

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clex LLM for cpast

A W.I.P. implementation for LLM for clex, aimed to generate clex from Human readable Input Format and Constraints.

Install & setup

Create a .env containing the gemini api key. Make sure you have rye installed on your local system.

make init

Run

make run

or

rye run dev

Help!

Go to {base url}/docs for help!

Example usage

curl -X 'POST' \
  'http://0.0.0.0:8000/api/llm/generate' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "input_format": "string",
  "constraints": "string"
}'

Resources (Good to read)

https://arxiv.org/abs/2305.19234

https://github.com/berlino/grammar-prompting

https://github.com/r2d4/parserllm

https://matt-rickard.com/context-free-grammar-parsing-with-llms

https://matt-rickard.com/rellm

https://github.com/r2d4/rellm

https://doc.rust-lang.org/stable/reference/notation.html

https://github.com/rootCircle/cpast/blob/main/clex.specs.md

About

[WIP] LLM for clex language for cpast

https://github.com/rootCircle/cpast

License:GNU General Public License v3.0


Languages

Language:Python 95.8%Language:Rust 2.7%Language:Makefile 1.5%