Skip to content

Search results not clickable when using file connector and specifying metadata link: #1195

@dbro

Description

@dbro

Using the file connector and the metadata as described here https://docs.danswer.dev/connectors/file , the links are not working.

In the html of the page, the value of the href property is an empty string, and not the value of the link specified. For comparison, the value specified for the file_display_name is working as expected.

Here is the test file I uploaded to Danswer:

#DANSWER_METADATA={"link": "https://docs.danswer.dev/connectors/file", "file_display_name": "Danswer can index files, too", "primary_owners": ["abc@123.xyz", "def@456.xyz"], "test_tag":"test_value"}
# File Connector

## Access knowledge from Local Files

How it works

The File Connector indexes user uploaded files. - Currently supports .txt, .pdf, .md and .mdx files - Can also upload a .zip containing these files - If there are other file types in the zip, the other file types are ignored - Optional metadata line that supports links, document owners, and time updated as metadata for Danswer’s retrieval and AI Answer

Adding Metadata

The metadata line should be placed at the very top of the file and can take one of two formats:

These screenshots show what appears in the search results, and in the page html. Notice the blue highlighted line has href="" instead of the expected href="https://docs.danswer.dev/connectors/file"

Screenshot 2024-03-07 165657 Screenshot 2024-03-07 165739

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions