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.3.6.tar.gz (29.4 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.3.6-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ukraine-0.3.6.tar.gz
Algorithm Hash digest
SHA256 5965444f22c0f2b4d799dc4629974ea7873fb86f8b69f613ce7d491d32c56813
MD5 2bd9ac7ab6924a2666b93ea592f9551b
BLAKE2b-256 0121f53155b4965d2dbb53284dfed587af43bb073ecbb6bd37b4a2ff36c70ba8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ukraine-0.3.6-py3-none-any.whl
  • Upload date:
  • Size: 33.7 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.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d87fa1cdf5fd936a39d4b1f1787e1e65ff93d62de00e85760db6b9511f2ff1b9
MD5 e4f1724efdd37ac5a6375bc94b7d6acc
BLAKE2b-256 de17848426918d9361b0d63c88460ebdd7442d64949c2bfc96b2450b6893949c

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