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

AI Tags seems broken #277

Closed
tcsenpai opened this issue Dec 9, 2024 · 3 comments
Closed

AI Tags seems broken #277

tcsenpai opened this issue Dec 9, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@tcsenpai
Copy link

tcsenpai commented Dec 9, 2024

Describe the bug
Generating AI tags result in a sentence (often multi line) instead of just tags.
Additionally, tags are then introduced within markdown contents resulting in H1 titles instead of actual tags.

To Reproduce
Steps to reproduce the behavior:
Generate AI tags for a Blinko

Expected behavior
Get a list of tags

Screenshots
image

Desktop (please complete the following information):

  • OS: Linux
  • Browser: Zen (Firefox)
  • Version latest

Additional context
Using default AI settings with Ollama and llama3.2

Copy link

dosubot bot commented Dec 9, 2024

Hey there, @tcsenpai! I'm here to help you with any bugs, questions, or contributions. Let's tackle this together!

The issue you're experiencing with AI tag generation in Blinko, where the output is a sentence instead of discrete tags, might be related to how the api.ai.autoTag.mutate function processes the content. Unfortunately, the specific logic used by this function to generate tags isn't detailed in the available information, so it might require further investigation into the implementation of this function.

Additionally, the problem with tags being inserted as H1 titles in markdown content could be due to the way markdown is handled when inserting tags. The replaceMarkdownTag method is responsible for replacing markdown content with new tags, and it formats the tags as "#" + text + ' ' [1]. This might be causing the tags to be interpreted as headers if the markdown syntax isn't correctly managed.

To address these issues, you might want to:

  1. Review the implementation of the api.ai.autoTag.mutate function to ensure it outputs tags in the expected format.
  2. Check the replaceMarkdownTag method to ensure it correctly formats tags for markdown content without converting them into headers.

These steps could help in resolving the issues with AI tag generation and insertion.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot dosubot bot added the bug Something isn't working label Dec 9, 2024
@tcsenpai
Copy link
Author

tcsenpai commented Dec 9, 2024

Great to have a bot replying, just bumping this to ensure an human will actually read it

github-actions bot pushed a commit that referenced this issue Dec 10, 2024
## [0.21.4](v0.21.3...v0.21.4) (2024-12-10)

### Bug Fixes

* enhance AI prompt instructions for tag and emoji suggestions [#277](#277) ([fdcc34c](fdcc34c))
@blinko-space
Copy link
Owner

Optimized the prompt. It should be more stable now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants