kamranahmedse / developer-roadmap

Interactive roadmaps, guides and other educational content to help developers grow in their careers.
https://roadmap.sh
Other
298.49k stars 39.25k forks source link

Creating a text summarising chains #7581

Open prateek-1803 opened 1 month ago

prateek-1803 commented 1 month ago

What Roadmap is this project for?

Prompt Engineering

Project Difficulty

Intermediate

Add Project Details

You are required to create summarising chains using the LangChain framework.

To create summarisation chains in the LangChain framework, you can use the ChatOpenAI model alongside a well-crafted prompt.

Define the Prompt Template: Write a concise, focused prompt template to instruct the model on the type of summarisation you need. Initialise the ChatOpenAI LLM: Use LangChain's ChatOpenAI class, which provides access to the OpenAI language model for generating summaries. Run the Chain: Combine the prompt template and LLM into a summarisation chain, which allows you to run the summarisation process.

Naveen-Pal commented 3 weeks ago

seems interesting, I would like to work on it. Can you (@dansholds , @prateek-1803) please provide some more detail like where it going to implement. Is it specific for prompt engineering page (like for demonstration)? . and the changes in user interface.