Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Slack] Vespa Bot puts language (in plain text) in the code cells #32333

Closed
radu-gheorghe opened this issue Sep 4, 2024 · 2 comments
Closed
Assignees
Milestone

Comments

@radu-gheorghe
Copy link
Contributor

Take this question:

How do I write a query that searches in multiple fields? Give me an example

Part of the response looks like this:

You have defined a schema with multiple fields, such as title, content, and tags. You can create a fieldset that includes these fields as follows:

xml
schema example {
    document example {
        field title type string {
            indexing: index

Note the xml element at the beginning of the code snippet. Pretty much all code snippets have that kind of thing - I assume it's because OpenAI tries to render some sort of Markdown which Slack can't render (it doesn't know what to do with that xml).

I don't see a good solution to this other than simply removing those tags. What do you think @johansolbakken @sebastiannberg ?

@kkraune kkraune added this to the soon milestone Sep 4, 2024
@johansolbakken
Copy link

Good catch @radu-gheorghe ! We have removed the language from the output. Unfortunately, we found no support for specifying the language in Slack.

@radu-gheorghe
Copy link
Contributor Author

That is fine. Thanks a lot for looking into it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants