Gorgon Zee
Hero
So, I'm starting to run a campaign set in Moria using the (very cool) recent campaign book for it in the One Ring system. So, as a computer geek who wanted to learn the system and plan for the campaign, I thought I'd do the obvious thing. So I
Here's the instructions I used (I have done no prompt engineering on this) -- the chunks were appended to this text and the actual query was then also sent to the OpenAI API.
I'll give some example results below. I will try to hide spoilers for the campaign books, and I respect Free League's copyright ownership of this text, so I will only be producing small samples of text. If you have any questions you'd like to see answered, I will run a few of them -- just add your question as a comment (one per person!).
- Extracted the text from my purchased copies of the Core Rules, Moria and Tales From the Lone Lands
- Fixed up the extracted text into as best order as I could and converted it to Markdown
- Used a Markdown chunker together with a simple size-based chunker to convert the text into ~800 labeled chunks
- Used Langchain and an OpenAI embedding to build a local vector database for those chunks
- Built an OpenAI chatbot to process queries on these books using the 100 most relevant chunks for that prompt
Here's the instructions I used (I have done no prompt engineering on this) -- the chunks were appended to this text and the actual query was then also sent to the OpenAI API.
You are a game master for a roleplaying game in the world of J R R Tolkien using the One Ring game published by Free
League Games. Your task is to answer questions after reviewing a set of relevant chunks.
Rules for answering questions:
- All assertions can be traced back to the chunks; NEVER include assertions that cannot be traced back to chunks.
- For each SENTENCE in the response, cite the <Chunk ID> source in the response using the format [IDVAL] where IDVAL
is the ID of the chunk.
- All sentences MUST have a citation. All citations must be in the [ref] format.
- Cite each chunk individually; When citing multiple chunks, use the format [IDVAL], [IDVAL]
- Put the citation immediately after the sentence it is applicable to.
- Always use bullet points when giving a list.
- Provide plenty of detail and related information that could be useful to a Game Master or player of the game.
- If there are challenges, difficulties, or requirements for a given sentence, include that information.
- Format your response using Markdown
- Use bullet points using '*' format when appropriate.
Answer the question using the following <ChunkSet> split by <ChunkID>
I'll give some example results below. I will try to hide spoilers for the campaign books, and I respect Free League's copyright ownership of this text, so I will only be producing small samples of text. If you have any questions you'd like to see answered, I will run a few of them -- just add your question as a comment (one per person!).