Coder Social home page Coder Social logo

chxlqqx / llm-post-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from semaj87/llm-post-generator

0.0 0.0 0.0 172 KB

Using LLMs & the SERP API to retrieve information on a given topic, which is then used to generate a Reddit post

Home Page: https://llm-post-generator.streamlit.app/

License: MIT License

Shell 0.93% Python 99.07%

llm-post-generator's Introduction

LLM post generator

An app that uses the SERP API together with the gpt-3.5-turbo model to generate a Reddit post. This is achieved by using LangChain and prompt templates to chain everything together, and generate the desired result.

The following process underpins the end-to-end app functionality:

  • A topic of choice is entered into the web application which forms the SERP query
  • The next step is used to find the best URL using a prompt template and the gpt-3.5-turbo model
  • Once the URL are returned, LangChain is used to fetch the data from the URL
  • Then the process summarises the fetched data, using the gpt-3.5-turbo and prompt template
  • Finally, LangChain and prompt templates are used in tandem with gpt-3.5-turbo to generate a Reddit post

System design

system-design

Models

Requirements

python -m pip install -r requirements.txt

Run App Locally

source build.sh

Run App with Streamlit Cloud

Launch App

License

Distributed under the MIT License. See LICENSE for more information.

llm-post-generator's People

Contributors

semaj87 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.