Skip to main content

Convert natural language descriptions to LaTeX equations

Project description

smoltex

Convert natural language descriptions to LaTeX equations within your terminal in under one second!

usage

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

smoltex-0.1.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

smoltex-0.1.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

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

Hashes for smoltex-0.1.1.tar.gz
Algorithm Hash digest
SHA256 12b83c6c8a0102f3e4385313fd0fa6cc1a37754182eb332cd27464e58bb4a290
MD5 0566eaefd1cd689f975c0fb633f239cc
BLAKE2b-256 fe367de0ff6c10ff36d6d085524b9b8d9f1762bbb9817c00e4a51eda03a89f33

See more details on using hashes here.

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

Hashes for smoltex-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a16c64b2ad6d853dff6c0d51843ef3498f3cec8a2d699bcc5af5ce457eaeff6a
MD5 81881ecefe3f3d4efb90cf8e7d49fbf0
BLAKE2b-256 05f39d378dd0f20b4dbc9ead3f7309da88d28534807f4c5aab8f2fca4afe2239

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page