#Knowledge: Markdown file type not detected, plus other files breaks retrieval

1 messages · Page 1 of 1 (latest)

compact gull
#

When uploading markdown files with .md extension together with other files e.g. JSON as knowledge files, then retrieval doesn't work on markdown files. Markdown files are either ignored or you receive various responses that file content cannot be accessed, in worst case the "Error searching knowledge". Workaround: uploading markdown files with .txt extension works, but it's detected as text/plain, not text/markdown.

ChatGPT shared link: https://chat.openai.com/g/g-LLpFiZG9b-bugreport-knowledge-mdjsonbreaksretrieval

Steps to reproduce:

  1. Create a custom GPT
  2. Upload this markdown file as knowledge file: https://gist.githubusercontent.com/rt2zz/e0a1d6ab2682d2c47746950b84c0b6ee/raw/83b8b4814c3417111b9b9bef86a552608506603e/markdown-sample.md
  3. Upload this 1st JSON example as a knowledge file: https://json.org/example.html
  4. Save
  5. Prompt: search for definition list

Expected result:
After uploading the markdown file, the backend-api should list the file with type "text/markdown" (documentation) and as it is working when uploading the markdown file in the chat.
https://chat.openai.com/backend-api/gizmos/g-LLpFiZG9b
{ "id": "xyz", "file_id": "file-xyz", "name": "example.md", "type": "text/markdown" }

Chat output (from the markdown file):

apples
: Good for making applesauce.
oranges
: Citrus!
tomatoes
: There's no "e" in tomatoe.

Actual result:
The markdown file type is not detected (= empty), file content is ignored during retrieval:
{ "id": "xyz", "file_id": "file-xyz", "name": "example.md", "type": "" }

Chat output (just from the JSON file):

The search for "definition list" within the provided knowledge source yielded a document that includes a structure that could be interpreted as a definition list in the context of a glossary. In this document, there's a glossary section that outlines a "GlossList" which contains a "GlossEntry"....

Additional information

Browser: Chrome, Edge
OS: Windows

jagged gustBOT
#
Thank you for submitting a bug report regarding the API.

Have you attached a code snippet and/or provided an error log with your report? Adding these details can assist the community in addressing your issue.
Remember not to disclose your API Keys.

compact gull
#

Still not fixed in the recent GPT builder update 😦