Prompt tuning Prompts
These are the prompts used to create the prompts that can be used to create a graph using an LLM.
The prompts created by these prompts are tuned to the documents, making them more likely to create a relevant graph.
- The prompt for entity extraction is created like such:
Domain: We fist ask the LLM to create the domains that the documents span
- Persona: with the domains the LLM can create a persona (e.g. You are an expert {{role}}.
You are skilled at {{relevant skills}})
- Entity categories: using the domain and persona we ask the LLM to extract from the documents
the categories a node could get (e.g. person, school of thought, ML)
- Examples: Using all of the above we ask the LLM to create some example document->entities
extracted
- Entity extraction prompt: We merge all of the above information in a prompt that can be
used to extract entities