Convert natural language descriptions to LaTeX equations
Project description
smoltex
Convert natural language descriptions to LaTeX equations within your terminal in under one second!
how to use?
This project uses Groq platform for very fast response generation, so you will need to setup an API key for it. Groq provides a free tier API for personal usage.
To use smoltex you need to follow two simple steps:
Step 1: setup
-
Visit the Groq console to create your API key for free.
-
Then in the terminal of your choice, paste the below line:
export GROQ_API_KEY=<your-api-key-here>
or add this line to your .bashrc
or .zshrc
file for persistent usage.
Step 2: use
In the current terminal session, the command for using smoltex is smoltex
followed by the natural language description of the latex equation you want:
smoltex "equation for cross entropy"
The output will be the latex string of the requested description. You can paste the equation in any latex renderer to see the result.
That's it.
available models
Using the -m
or --model_name
option, you can choose to generate the latex string with different models as well. Available models (as of now) are:
Llama 3 variants:
- llama3-8b-8192
- llama3-70b-8192
Gemma variants:
- gemma-7b-it
- gemma2-9b-it
Mistral variants:
- mixtral-8x7b-32768
Example command for different models:
smoltex "equation for cross entropy" -m "mixtral-8x7b-32768"
Project details
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
File details
Details for the file smoltex-0.1.1.tar.gz
.
File metadata
- Download URL: smoltex-0.1.1.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12b83c6c8a0102f3e4385313fd0fa6cc1a37754182eb332cd27464e58bb4a290 |
|
MD5 | 0566eaefd1cd689f975c0fb633f239cc |
|
BLAKE2b-256 | fe367de0ff6c10ff36d6d085524b9b8d9f1762bbb9817c00e4a51eda03a89f33 |
File details
Details for the file smoltex-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: smoltex-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a16c64b2ad6d853dff6c0d51843ef3498f3cec8a2d699bcc5af5ce457eaeff6a |
|
MD5 | 81881ecefe3f3d4efb90cf8e7d49fbf0 |
|
BLAKE2b-256 | 05f39d378dd0f20b4dbc9ead3f7309da88d28534807f4c5aab8f2fca4afe2239 |