How AI Queries Work
The AI system analyzes your IFC file data and responds to natural language questions:- When you load an IFC file, the system extracts relevant data
- Property information is organized and prepared for AI analysis
- You ask questions in plain English
- The AI analyzes the extracted data and provides concise answers
/src/bim-components/ChatGpt/index.ts:30
Accessing the AI Panel
The AI query interface is available in the Load to tab:Navigate to Load to Tab
Click on the Load to tab in the floating toolbar at the center of the viewport.
/src/bim-components/ChatGpt/src/user-interface.ts:42
Making Your First Query
Type Your Question
In the “Write Question” text input field, type your question about the model. For example: “How many walls are in this building?”
Wait for Response
The AI processes your question against the model data. This may take a few seconds.
Read the Answer
The AI’s response appears in the text area below the input field. Responses are concise and based only on the available data.
/src/bim-components/ChatGpt/src/user-interface.ts:14
What Data is Available to Query?
The AI has access to specific IFC data extracted from your model:Material Information
- Material names and types
- Material associations with elements
IFCMATERIALentities
/src/bim-components/LoadIfc/index.ts:94
Building Storey Data
- Building level names (Ground Floor, Level 1, etc.)
- Elements contained in each storey
IFCBUILDINGSTOREYentities- Spatial containment relationships
Element Properties
- Element types (walls, slabs, beams)
- Property sets (
IFCPROPERTYSET) - Element quantities (
IFCELEMENTQUANTITY) - Defined properties for each element
/src/bim-components/LoadIfc/index.ts:47
Entity Types
The system extracts data for:IFCWALLandIFCWALLSTANDARDCASEIFCSLABIFCBEAMIfcRelAssociatesMaterialIfcRelContainedInSpatialStructure
/src/bim-components/ChatGpt/index.ts:39
Example Questions
Material Queries
Storey Information
Element Counts
Property Queries
Crafting Effective Questions
Be Specific
Reference IFC Terms
Ask One Thing at a Time
Request Counts and Lists
Understanding AI Responses
The AI system is configured to provide concise, fact-based answers:Response Characteristics
- Concise: Answers use as few words as possible
- Data-driven: Only information from the IFC file is included
- No assumptions: If data isn’t available, the AI won’t guess
- JSON-based: The AI analyzes structured JSON data extracted from IFC
/src/bim-components/ChatGpt/index.ts:78
When the AI Says “Not Found”
If the AI responds that information isn’t available:- The IFC file may not contain that specific data
- Property sets might be incomplete
- The data may be in a format not currently extracted
AI System Architecture
Understanding how the system works helps you ask better questions:Data Extraction Process
Properties Extracted
The system extracts properties for specific entity types using the IFC Relations Indexer.
/src/bim-components/LoadIfc/index.ts:63
Query Processing
System Prompt Applied
A system prompt instructs the AI to answer only based on provided data and to be concise.
/src/bim-components/ChatGpt/index.ts:67
Data Filtering for Performance
The system includes an optional data filtering mechanism:- Filters IFC file content to include only relevant entities
- Reduces data sent to the AI API
- Improves response time and reduces API costs
- Focuses on: materials, walls, slabs, beams, storeys, and relationships
/src/bim-components/ChatGpt/index.ts:37
The filtering function is implemented but may not be active by default. Check the code configuration if responses seem incomplete.
Limitations and Considerations
Data Availability
- AI can only answer questions about data present in the IFC file
- Some IFC files have minimal property sets
- Geometric data (shapes, dimensions) may not be fully queryable
Response Time
- Queries typically take 2-5 seconds
- Large IFC files with extensive data may take longer
- API response times vary based on OpenAI service load
API Costs
- Each query consumes OpenAI API credits
- Consider data filtering for cost optimization
- GPT-3.5-Turbo is chosen for cost-effectiveness
Privacy
- IFC data is sent to OpenAI’s servers
- Ensure compliance with your data privacy requirements
- Sensitive project data should be handled according to your security policies
Troubleshooting
”No file data, cant answear” Alert
- Ensure you’ve loaded an IFC file before querying
- Reload the file if necessary
- Check that the file loaded successfully (visible in viewport)
/src/bim-components/ChatGpt/src/user-interface.ts:19
Empty or Generic Responses
- Your IFC file may lack the requested data
- Try more specific questions using IFC terminology
- Check that property sets are defined in the source BIM model
Query Button Doesn’t Respond
- Ensure you’ve entered a question in the text input
- Check browser console for error messages
- Verify your OpenAI API key is configured (developer setting)
Responses are Incomplete
- The AI is configured for concise answers
- Ask follow-up questions for more detail
- Try rephrasing your question to be more specific
Tips for Best Results
Next Steps
Combine AI queries with other features:- Use data visualization to see element distributions
- Apply measurements to verify dimensions mentioned in AI responses
- Cross-reference AI answers with the element selection panel for detailed properties