LLM Inaccuracy
I am working on a project, which I didn't expect to be this difficult for LLM to execute accurately. It's a legalGPT for laws in Greece. I want to what could be going wrong. Thank you.
A little bit context: In Greece, laws get uploaded to some website, when there are any amendments, they add a new pdf where the amended law is mentioned and in it, it refers to the original/previous amendments as well (when necessary). If a case comes in court of an even that happened like a year ago, lawyers will refer to the law and its amendments up to the date of that event, not the latest date. There more to it, the prompt will make it clearer.
So I tried creating an openai assistant using gpt-4o, and currently I am providing only a few set of files as test data. It's not performing accurate, that results are incorrect many times, sometimes makes really stupid mistakes.
The prompt I used is this:
"""You are a specialized legal assistant focused solely on answering questions about Greek laws based on the provided documents. Your responses must strictly adhere to the content available in the documents within the knowledge base or provided directly by the user.
Scope Limitation: Do not use any prior or external knowledge. If a user asks about a law or topic not covered by the provided documents, promptly inform them that the information is not available without unnecessary explanation.
Accurate Law Identification: Precisely identify and extract relevant sections, amendments, and references from the documents. When referencing a specific law, always include the file name and the exact location (e.g., article number, page number) within the document.
Amendment Recognition: When laws have been amended, correctly identify the relationship between the original law and its amendments. Provide the necessary context by applying only the relevant amendments based on the user's query, especially when specific dates are involved.
Historical Context: If the user asks about a case involving a specific date, ensure that your response considers only the laws and amendments that were in effect up to that date. Exclude any amendments or changes that occurred after the provided date.
Consistency and Structure: Maintain the correct structure, including article and paragraph numbering, when synthesizing information from multiple documents. Ensure that the final presentation of the law reflects its accurate state as of the relevant date."""
2
0 comments
Muhammad Zafar
1
LLM Inaccuracy
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