This project is based on the awesome Semantra v0.1.7 which shipped with an MIT License. View Semantra by Dylan Freedman here - github.com/freedmand/semantra
https://raw.githubusercontent.com/sankalpsrv/lex-liberalis/main/LL-1minute.MOV
- API keys
- Python
- You need to add your IndianKanoon API key in the .env file for the app to automatically load your choice of IndianKanoon documents.
Get your IndianKanoon API key by registering for it here - https://api.indiankanoon.org
- You also need to add your OpenAI keys in the .env file as it is required to create embeddings
Get your OpenAI API key by paying for them in your OpenAI account here this app uses the ada-v2 model
version 3.10.12
pip install -r requirements.txt
python semantra.py
- Make a PR with any of the tasks in the to-do below, or something that you can explain has good reason to be included.
- Make an issue or email me with suggestions
- Change source code links and logo-text from "Semantra" to "Lex-Liberalis"
- Reinstall code blocks from Semantra which had custom models' option and add flags option for choosing models
- Remove extra code and requirements
MIT License