Skip to content

rootCircle/cpast_llm

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published