Skip to content

Relevant text from the source document is being removed from the answer and used as a citation if it is in square brackets #735

@elhele

Description

@elhele

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report 
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Load a document that contains text in square brackets, e.g. "[km / h ]"

Any log messages given by the failure

There are no errors in the logs, because it works as it supposed to work according to the code, if I understand it correctly: "Do not include any text inside [] or <<>> in the search query terms. ".

Expected/desired behavior

The relevant text is inside the answer and not the citations.

OS and Version?

macOS (Sonoma, Version 14.0)

azd version?

azd version 1.3.1

Versions

Repo version from 25.09 with fixed werkzeug-requirements

Mention any other details that might be useful

Please, see the screenshots


Head of the table from the original document:
Bildschirmfoto 2023-10-05 um 09 53 09

Search result:
Bildschirmfoto 2023-10-05 um 09 53 44

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug in the code that should be fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions