Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rootcircle/cpast_llm
[WIP] LLM for clex language for cpast
https://github.com/rootcircle/cpast_llm
Last synced: 1 day ago
JSON representation
[WIP] LLM for clex language for cpast
- Host: GitHub
- URL: https://github.com/rootcircle/cpast_llm
- Owner: rootCircle
- License: gpl-3.0
- Created: 2024-01-30T22:22:49.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-23T05:12:53.000Z (5 months ago)
- Last Synced: 2024-08-23T06:26:32.969Z (5 months ago)
- Language: Python
- Homepage: https://github.com/rootCircle/cpast
- Size: 235 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# clex LLM for cpast
A W.I.P. implementation for LLM for clex, aimed to generate [clex](https://github.com/rootCircle/cpast/blob/54e7f6820aa97f70c25047afd4ce14042b25838a/docs/clex/CLEX_LANG_SPECS.md) from Human readable _Input Format_ and _Constraints_.
## Install & setup
Create a `.env` containing the gemini api key. Make sure you have [rye](https://rye-up.com/guide/installation/) installed on your local system.
```bash
make init
```## Run
```bash
make run
```
or```bash
rye run dev
```## Help!
Go to `{base url}/docs` for help!
Example usage
```bash
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