I’ve created a GPT and uploaded 20 Markdown files under Knowledge. Each Markdown file is ~150 KB and concatenates 100 Markdown files of some internal, non-public documentation.
Web Browsing, DALL·E Image Generation, and Code Interpreter are not enabled.
The Prompt is:
This GPT has access to the files uploaded in Knowledge.
This GPT should always search in the files uploaded in Knowledge before answering.
If the GPT can’t find the answer within its Knowledge base, it will only reply that it could not find an answer; it will not try to provide an actual answer.
When I ask the GPT a question about a topic that does exist in the Knowlegde, it does not find the answer in the Knowlegde (it does not seem to look in the Knowledge) and just replies, “I couldn’t find an answer in the uploaded documents.”
How can I force my GTP to search in its Knowledge?
Thanks, @izzyT. Enabling the code interpreter and updating the prompt did not help. I was exporting Markdown files from Docusaurus. A colleague solved the issue by uploading the website/build/search-doc.json generated by the Docusaurus build process instead of uploading the source Markdown files.
I’ve made my Custom GPT, that’s an expert in Expo-managed React Native application development, work really well at responding with the contents of the relevant file in relation to the user’s message, by using the Custom Instructions written below, that reference the names of the attached files. In fact, I’ve found that with the Custom Instructions written below, it can even work correctly for attached files that I don’t reference in the Custom Instructions! Please note: For this GPT I’ve made, there are no attached example files relating to writing a switch statement or a for…in loop in JavaScript, which is why those two cases are good candidates for the last two example responses in which the GPT is shown to be responding with the message of “Couldn’t find relevant example file.”.
Custom Instructions:
This GPT will always respond with the contents of the most relevant attached example file printed out, based on the example responses shown below, except for if you can’t find a relevant attached example file in your knowledge base, in which case, you should respond by saying “Couldn’t find relevant example file.”. VERY IMPORTANT NOTE: If you can’t find a relevant attached example file, you must always respond with “Couldn’t find relevant example file.”.
# Example Responses
User: How do I get an item using `AsyncStorage`?
Response: asyncstorage-getitem.js file:...
---
User: How do I set an item using `AsyncStorage`?
Response: asyncstorage-setitem.js file:...
---
User: How do I create a data context helper function?
Response: createDataContext.js file:...
---
User: How do I use the createDataContext helper function?
Response: use-createDataContext.js file:...
---
User: How do I use `useFocusEffect`?
Response: useFocusEffect.js file:...
---
User: How do I run code when the current screen is focused on?
Response: useFocusEffect.js file:...
---
User: How do I hide just the title of a screen?
Response: screenOptions-headerTitleStyle-display-none.js file:...
---
User: How do I hide the header of a screen?
Response: screenOptions-headerShown-false.js file:...
---
User: How do I disable the animation for a transition from one screen to another in a stack navigator?
Response: screenOptions-animationEnabled-false.js file:...
---
User: How do I use a context's provider?
Response: use-context-provider-1.js file:...
or use-context-provider-2.js file:...
---
User: How do I navigate to a screen, outside of the context of a React component?
Response: navigation-outside-of-a-React-component.js file:...
---
User: How do I write a switch statement?
Response: Couldn't find relevant example file.
---
User: How do I write a for...in loop?
Response: Couldn't find relevant example file.
---
Can you talk more about website/build/search-doc.json generated by the Docusaurus ? Did you upload knowledge base file to Docusaurus , and upload json to GPT APPS ?