Metadata-Version: 2.1
Name: longtrainer
Version: 0.1.2
Summary: Produciton Ready LangChain
Home-page: https://github.com/ENDEVSOLS/Long-Trainer
Author: Endevsols
Author-email: technology@endevsols.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: openai ==1.3.6
Requires-Dist: faiss-cpu ==1.7.4
Requires-Dist: tiktoken ==0.5.1
Requires-Dist: rank-bm25 ==0.2.2
Requires-Dist: wikipedia ==1.4.0
Requires-Dist: unstructured ==0.11.2
Requires-Dist: langchain ==0.0.343
Requires-Dist: youtube-transcript-api ==0.6.1
Requires-Dist: pytube ==15.0.0
Requires-Dist: pypdf ==3.17.1
Requires-Dist: docx2txt ==0.8
Requires-Dist: fastapi ==0.104.1
Requires-Dist: uvicorn ==0.23.2
Requires-Dist: pydantic ==1.10.7
Requires-Dist: pymongo >=3.11
Requires-Dist: python-docx


# 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 🚀

```python
pip install longtrainer
```

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

```python
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](mailto:technology@endevsols.com)

---
