Skip to content

v1.2.3

Compare
Choose a tag to compare
@melih-unsal melih-unsal released this 13 Aug 19:16
· 104 commits to main since this release

DemoGPT v1.2.3 🚨 Release Notes

Overview

We're thrilled to announce the release of DemoGPT v1.2.3! This new version brings a plethora of enhancements, integrations, and features that will elevate your experience. From quick file translations to a smarter interface, we've got you covered.

🦜 Integrated with LangSmith

  • Seamlessly integrate with LangSmith for even better language processing and understanding.

📚 QA over Docs

  • Have a burning question? DemoGPT now supports QA over documents. Just point it to a document, and ask away!

🗂 Quick File Translations

  • Supported Formats: pptx, csv, pdf, and more.
  • Instantly translate documents across multiple languages with high accuracy.

🤖 Speedy Summaries

  • Get concise and precise summaries for lengthy documents or texts in seconds.

🐍 Python Interface

  • For those who love scripting, we've introduced a Python interface. Connect and interact with DemoGPT directly from your Python scripts.
from demogpt import DemoGPT
agent = DemoGPT(model_name="gpt-3.5-turbo") # if OPENAI_API_KEY is not set in env variables, put it with openai_api_key argument
instruction = "Your instruction here"
title = "Your title here"
code = ""
for phase in agent(instruction=instruction, title=title):
    print(phase) # this will display the resulting json for each generation stage
    if "code" in phase:
        code = phase["code"] # final code
print(code)

Example Output (truncated):

# phases
{'stage': 'draft', 'completed': False, 'percentage': 60, ...}
{'stage': 'draft', 'completed': False, 'percentage': 64, 'code': '#Get the source language ...'}
...
{'stage': 'final', 'completed': True, 'percentage': 100, ... , 'code': 'import streamlit as st\n...'}
# Code
import streamlit as st
from langchain import LLMChain
from langchain.chat_models import ChatOpenAI
from langchain.prompts.chat import (ChatPromptTemplate,
                                    HumanMessagePromptTemplate,
                                    SystemMessagePromptTemplate)
...

🎭 Role Play

  • Enhance your chat experiences! DemoGPT can now adapt to different roles, making conversations more engaging and scenario-driven.

Bug Fixes & Improvements

  • As always, we've squashed a few bugs and made some under-the-hood improvements to ensure a smoother experience.

Getting Started

  1. Update to the latest version of DemoGPT from the releases page.
  2. Check out our updated documentation for detailed information on the new features.

Feedback

Your feedback is invaluable to us. If you encounter any issues or have suggestions, please open an issue on our GitHub repo. We're always looking to improve and provide you with the best experience.


Thanks for being a part of our community! Happy coding! 🚀