https://github.com/amanvirparhar/elara

A simple tool to anonymize LLM prompts.

https://github.com/amanvirparhar/elara

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.2%) to scientific vocabulary

Keywords

anonymization gliner pii
Last synced: 5 months ago · JSON representation

Repository

A simple tool to anonymize LLM prompts.

Basic Info
  • Host: GitHub
  • Owner: amanvirparhar
  • License: mit
  • Language: Svelte
  • Default Branch: main
  • Homepage:
  • Size: 81.1 KB
Statistics
  • Stars: 61
  • Watchers: 2
  • Forks: 8
  • Open Issues: 1
  • Releases: 0
Topics
anonymization gliner pii
Created about 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme License

README.md

Elara

A simple tool to anonymize LLM prompts.

Uses urchade/glinermultipii-v1 for named entity recognition (NER).

Watch the demo to see Elara in action.

Components

  • SvelteKit fullstack web app running on port 5173
  • Python webserver to interact with the model running on port 8000

Setup

Python

First, if you don't have uv installed on your system, install it with the following commands (uv allows for easy package and version management for Python projects):

```bash

On macOS and Linux.

curl -LsSf https://astral.sh/uv/install.sh | sh ```

```bash

On Windows.

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" ```

Then, start the Python webserver with uv:

bash cd python && uv run --python 3.12 --with-requirements requirements.txt main.py

Wait until you see INFO: Application startup complete. in the terminal before running and using the SvelteKit app (ensures that the model has been loaded and the server is ready to handle requests).

SvelteKit

Run the SvelteKit app with npm:

bash cd sveltekit && npm i && npm run dev

Usage

  1. Open the SvelteKit app in your browser at http://localhost:5173.
  2. Paste/write text into the "ORIGINAL TEXT" textarea.
  3. Click the "SUBMIT" button to anonymize the text.
  4. Copy the anonymized text, which will appear in the "ANONYMIZED TEXT" card.
  5. Paste the anonymized text into an LLM of your choice, and generate a response.
  6. Copy the LLM's response and paste it into the "ANONYMIZED LLM RESPONSE" textarea.
  7. The "DE-ANONYMIZED TEXT" card will show the de-anonymized version of the LLM's response, which you can copy and use as needed.
  8. If you'd like to modify any labels, please add or remove lines from labels.txt in the project's root.

Owner

  • Name: Amanvir Parhar
  • Login: amanvirparhar
  • Kind: user
  • Location: California

builder, cs @ umd

GitHub Events

Total
  • Issues event: 1
  • Watch event: 59
  • Push event: 7
  • Pull request event: 2
  • Fork event: 8
  • Create event: 4
Last Year
  • Issues event: 1
  • Watch event: 59
  • Push event: 7
  • Pull request event: 2
  • Fork event: 8
  • Create event: 4

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 5
  • Total Committers: 1
  • Avg Commits per committer: 5.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 5
  • Committers: 1
  • Avg Commits per committer: 5.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Amanvir Parhar 4****r 5

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 1
  • Total pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: 22 days
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: 22 days
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • guilherme-marcello (1)
Pull Request Authors
  • guilherme-marcello (2)
Top Labels
Issue Labels
Pull Request Labels

Dependencies

sveltekit/package-lock.json npm
  • 206 dependencies
sveltekit/package.json npm
  • @sveltejs/adapter-auto ^4.0.0 development
  • @sveltejs/kit ^2.16.0 development
  • @sveltejs/vite-plugin-svelte ^5.0.0 development
  • autoprefixer ^10.4.20 development
  • prettier ^3.4.2 development
  • prettier-plugin-svelte ^3.3.3 development
  • prettier-plugin-tailwindcss ^0.6.10 development
  • svelte ^5.0.0 development
  • tailwindcss ^3.4.17 development
  • vite ^6.0.0 development
  • ollama ^0.5.12
  • svelte-sonner ^0.3.28
python/requirements.txt pypi
  • fastapi *
  • gliner *
  • uvicorn *