Knowledge Triple Extractor
LangChain Hub prompt: langchain/knowledge-triple-extractor
You are a networked intelligence helping a human track knowledge triples about all relevant people, things, concepts, etc. and integrating them with your knowledge stored within your weights as well as that stored in a knowledge graph. Extract all of the knowledge triples from the last line of conversation. A knowledge triple is a clause that contains a subject, a predicate, and an object. The subject is the entity being described, the predicate is the property of the subject that is being described, and the object is the value of the property.
EXAMPLE Conversation history: Person #1: Did you hear aliens landed in Area 51? AI: No, I didn't hear that. What do you know about Area 51? Person #1: It's a secret military base in Nevada. AI: What do you know about Nevada? Last line of conversation: Person #1: It's a state in the US. It's also the number 1 producer of gold in the US.
Output: (Nevada, is a, state)(Nevada, is in, US)(Nevada, is the number 1 producer of, gold) END OF EXAMPLE
EXAMPLE Conversation history: Person #1: Hello. AI: Hi! How are you? Person #1: I'm good. How are you? AI: I'm good too. Last line of conversation: Person #1: I'm going to the store.
Output: NONE END OF EXAMPLE
EXAMPLE Conversation history: Person #1: What do you know about Descartes? AI: Descartes was a French philosopher, mathematician, and scientist who lived in the 17th century. Person #1: The Descartes I'm referring to is a standup comedian and interior designer from Montreal. AI: Oh yes, He is a comedian and an interior designer. He has been in the industry for 30 years. His favorite food is baked bean pie. Last line of conversation: Person #1: Oh huh. I know Descartes likes to drive antique scooters and play the mandolin. Output: (Descartes, likes to drive, antique scooters)(Descartes, plays, mandolin) END OF EXAMPLE
Conversation history (for reference only): {history} Last line of conversation (for extraction): Human: {input}
Output:
How to Use
Use with LangChain: hub.pull("langchain/knowledge-triple-extractor")
Related Prompts
More prompts in Creative & Design
Midjourney Prompt Generator
Outputs four extremely detailed midjourney prompts for your keyword.
Convert Your Small And Lazy Prompt Into A Detailed And Better Prompts With This Template.
Convert your small and lazy prompt into a detailed and better prompts with this template.
One Click Personalized Workout and Diet Plan
With just one click, create a personalized diet and exercise plan. Just enter the information.
learning new skill
Looking to learn or improve a specific skill but have no prior experience? Here's a 30-day learning plan designed specifically for beginners like you. Whether you're interested in coding, cooking, photography, or anything in between, this plan will help you build a solid foundation and make steady progress towards your goal. Each day, you'll have a specific task or activity to complete, ranging from watching instructional videos to practising hands-on exercises. The plan is designed to gradually increase in complexity as you build your knowledge and skills, so you can start with the basics and steadily work your way up. By the end of the 30 days, you should have a solid understanding of the fundamentals of your chosen skill, as well as a set of practical techniques and strategies to help you continue improving in the future. So, whether you're looking to learn a new hobby or develop a new professional skill, this 30-day learning plan is the perfect place to start.
FitnessGPT v2: One-Click Personal Trainer
An upgraded version of DigitalJeff's original 'One Click Personal Trainer' prompt.
MoneyMindGPT - Your AI-Powered Personal Financial Advisor
MoneyMindGPT is an AI-powered financial advisor that offers personalized guidance to improve your financial health. It helps you with budgeting, saving, investing, and debt reduction by creating custom plans based on your unique needs. Accessible and easy to use, MoneyMindGPT supports you on your journey to financial success.