Skip to main content

Produciton Ready LangChain

Project description

LongTrainer - Production-Ready LangChain

Features 🌟

  • Long Memory: Retains context effectively for extended interactions.
  • Unique Bots/Chat Management: Sophisticated management of multiple chatbots.
  • Enhanced Customization: Tailor the behavior to fit specific needs.
  • Memory Management: Efficient handling of chat histories and contexts.
  • GPT Vision Support: Integration with GPT-powered visual models.
  • Different Data Formats: Supports various data input formats.
  • VectorStore Management: Advanced management of vector storage for efficient retrieval.

Usage Example 🚀

pip install longtrainer

Here's a quick start guide on how to use LongTrainer:

from longtrainer.trainer import LongTrainer
import os
        
# Set your OpenAI API key
os.environ["OPENAI_API_KEY"] = "sk-"
        
# Initialize LongTrainer
trainer = LongTrainer()
bot_id = trainer.initialize_bot_id()
print('Bot ID: ', bot_id)
        
# Add Data
path = 'path/to/your/data'
trainer.add_document_from_path(path, bot_id)
        
# Initialize Bot
trainer.create_bot(bot_id)
        
# Start a New Chat
chat_id = trainer.new_chat(bot_id)
        
# Send a Query and Get a Response
query = 'Your query here'
response = trainer.get_response(query, chat_id, bot_id)
print('Response: ', response)

Maintainer 🛠️

This project is proudly maintained by ENDEVSOLS.

📧 Contact us at: technology@endevsols.com


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

longtrainer-0.1.1.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

longtrainer-0.1.1-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: longtrainer-0.1.1.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for longtrainer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5a189929f152226d3bd2b62670c447c76f70378c61be8dc8f820a2837ec45e8a
MD5 ac32b015d0fe2782c99940b53fbf7dfa
BLAKE2b-256 9665bf1b80a1069647d7fa6b8a4538e16fd99931c3cc833186ec2fa935efc38e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: longtrainer-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for longtrainer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7a90bf71f37fc0d038cc278da01d7c7f37ee3adacf02a12738e2f02e145eef55
MD5 2d9df6b3fd14093573f1fd0a59e2bfff
BLAKE2b-256 ec6e3e8ca35a118dd71ae1e8ec15aa4b6d83d9612cbd5b0818e624f7e435eb9b

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