I am building a AI chatbot using LLM for extracting the engineering drawing information,…
Rate quality
Private research annotation
Sign in to add a private research label or note.
- User
I am building a AI chatbot using LLM for extracting the engineering drawing information, but the LLM cannot read engineering drawing directly since it is in pdf format, so I use pypdf to convert pdf to text and pass to LLM, but there are many information and they are very messy after converted to text, for e.g. we may see something like:"see note 4(#) 33° ±1 °see note 4 (#)48° ±1° (#)33° ±1° see note 4 (#) 33° ±1°see no te 4 (#)30.7 + 0.2 0
(#)34.5
-0 0.2 13.7 ±0.3 13.7 ±0.3 3.5 ±0.5 22 REF. 11 REF. Permissible deviations for ranges of lengths Characteristic DATE DESCRIPTION REVISION REVISION:DRAWING NO.: SHEET:TITLE: APPROVEDDRAWNUNIT: SCALE:B2" it may affect the performance of the llm output, what can I do? - Assistant
- User
can I add prompt to tell the llm for looking for information after specifica words? e.g. "ITEM", "NOTES"
- Assistant
- User
write the full prompt to tell the llm the pdf is not clean and look for the specific word.
- Assistant
Certainly! Here’s a full prompt you can use to instruct the LLM to focus on specific keywords while acknowledging that the extracted text may be messy. This prompt incorporates clear instructions and context about the task, making it easier for the LLM to understand what you need:
- User
Make this prompt better:"The uploaded is a portion of text extracted from an engineering drawing PDF. The text contains various technical details that are formatted inconsistently due to conversion limitations. I need you to specifically look for and extract relevant information that appears after the keywords 'ITEM' and 'NOTES.' Please organize the extracted information into a clear and structured format, highlighting the key data points related directly to these sections. Ignore any irrelevant or miscellaneous data outside of these contexts. Given the engineering drawing pdf, extract all the information including:
- Assistant