Skip to main content

AI helper functions for a Flask web assistant using Groq.

Project description

merlin_ai_helper

A small helper library for AI-powered web assistants using Groq's Llama 3.1 model.

Installation (local)

In the project root:

pip install -e merlin_ai_helper

from merlin_ai_helper import get_response, summarize_text, format_response

reply = get_response("Explain cloud computing in simple words.")
print(reply)

summary = summarize_text("Very long text here...")
print(summary)

formatted = format_response(reply, width=60)
print(formatted)


---

### 1.5. `pyproject.toml` – make it an installable package

**File:** `merlin_ai_helper/pyproject.toml`

```toml
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "merlin-ai-helper"  # local package name
version = "0.1.0"
description = "AI helper functions for a Flask web assistant using Groq."
readme = "README.md"
requires-python = ">=3.8"
authors = [
  { name = "Merlin", email = "your-email@example.com" },
]
dependencies = [
  "groq>=0.9.0",
]

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

merlin_ai_web_assistant-0.1.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

merlin_ai_web_assistant-0.1.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file merlin_ai_web_assistant-0.1.1.tar.gz.

File metadata

  • Download URL: merlin_ai_web_assistant-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for merlin_ai_web_assistant-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ae3f5fdd2d72204e3f8f9aa7ede1c66cfcc879d37c919047744c49359927d2fc
MD5 9beb95e4c01ad214bd1e0e1ee416f96f
BLAKE2b-256 e02f0ecba02d45d849ed9d1ccbb0a44d8b49e30ed069b79b9ef401f1f5605ea4

See more details on using hashes here.

File details

Details for the file merlin_ai_web_assistant-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for merlin_ai_web_assistant-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 696654ff9371edca74ecec40f3201a7db2256ba0eb70985baa763dcaee67fae9
MD5 086e79546d0855d38031f1b5a7d66780
BLAKE2b-256 70bcf7ef8c1aa4ca7391786161d794ca54c50c01c56c46529da2076ef58f10f8

See more details on using hashes here.

Supported by

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