Skip to main content

Ukraine: A Data Science Toolkit

Project description

Ukraine

Ukraine is a deep learning toolkit that includes research models, approaches and utils.

Installation

pip install -U ukraine[langchain_llama]
from ukraine.agents.rag import PDFLlamaRAGAgent

agent = PDFLlamaRAGAgent(
    file_path="PATH_TO_PDF",
    system_prompt="""Provide answers based on the document."{context}"""
)
result = agent.chat("What is this document about?")
print(result["answer"])

View this example in the cookbook

🧠 Introducing Complex AI Agents

A new file has been added: ukraine/agents/complex.py

Includes the OpenAIJiraNoteAgent class for automated conversion of audio file that contains meeting recording into Jira tasks using OpenAI + LangChain integrations.

Capabilities:

  • Transcribes audio to text using whisper-1
  • Breaks down transcribed instructions into actionable tasks
  • Creates structured Jira tickets via LangChain JiraToolkit

Installation

pip install -U ukraine[jira]

Example usage

from ukraine.agents.complex import OpenAIJiraNoteAgent

agent = OpenAIJiraNoteAgent()
transcription = agent.transcribe_audio("audio.ogg")
tasks = agent.convert_text_to_tasks(transcription, max_tokens=368)
agent.create_jira_tickets(tasks, project_key="KAN", language="ukrainian")

Environment variables required

OPENAI_API_KEY=<your_openai_key>
JIRA_API_TOKEN=<your_jira_token>
JIRA_USERNAME=<your_email>
JIRA_INSTANCE_URL=https://yourproject.atlassian.net
JIRA_CLOUD=True

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

ukraine-0.1.5.tar.gz (25.1 kB view details)

Uploaded Source

Built Distribution

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

ukraine-0.1.5-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

Details for the file ukraine-0.1.5.tar.gz.

File metadata

  • Download URL: ukraine-0.1.5.tar.gz
  • Upload date:
  • Size: 25.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for ukraine-0.1.5.tar.gz
Algorithm Hash digest
SHA256 1066e3ec312a9786144d1710f8c69a854caf899cb770643fead3e269bb11e9a6
MD5 9cf12d633ee6ab92a3dd9bfa0648c8d1
BLAKE2b-256 8909871f814993fb18d874f6983b4aa1a964f44aada35abf71369695595e7bfc

See more details on using hashes here.

File details

Details for the file ukraine-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: ukraine-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 28.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for ukraine-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d201c93f481cc5f47b298a9d9ba0908a797a0907e533af42f022ce4e0a1785ae
MD5 369eb665878e9f6ae6f87fc6cac41c0f
BLAKE2b-256 371f2323fcc310d1ecbab74a709d247a0772e3fc86060ee48109e95a8180afd4

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