Check an entire document for specifications defined in another document
I would need an approach on how to realize the following with langchain (or langgraph?):
Let's say I have two documents (PDFs/texts/whatever).
One comes from the customer and in it rules are defined regarding the textual design of documents (e.g. which words are allowed / not allowed, how certain texts must be formulated, etc).
The second document is the document to be checked that comes from me. In other words, I want to use AI to check whether I have complied with all the customer's specifications when having created a document.
How could this be solved with the help of KI / langchain/graph?
I have already gone through the langchain MasterClass course (Youtube) from you, Brandon, and know how to chat with documents, means asking single questions
But how do you go about doing something like I described above?
Here is my layman's approach:
The customer's document (i.e. the one with the rules) represents the SystemMessage e.g. "You are an AI assistant and know the following rules: [content of the rules document]".
And the HumanMessage or prompt should be: "Please check whether the following document complies with the rules: [Content of the document to be checked]"
But the [content of the rules document] may be hundreds/thousands of words also the [Content of the document to be checked] --> So i think this would not be performant.
So what would be the way to go?
Thank you for support.
0
0 comments
Daniel Bäuerlein
1
Check an entire document for specifications defined in another document
AI Developer Accelerator
skool.com/ai-developer-accelerator
Master AI & software development to build apps and unlock new income streams. Transform ideas into profits. 💡➕🤖➕👨‍💻🟰💰
Leaderboard (30-day)
Powered by