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

Add summary into YAML field summary #8

Open
dxcore35 opened this issue Jun 13, 2023 · 7 comments
Open

Add summary into YAML field summary #8

dxcore35 opened this issue Jun 13, 2023 · 7 comments

Comments

@dxcore35
Copy link

Can you expand functionality to extract whatever user define in settings of the plugin and then insert or replace the output text into YAML? I tried it with current plugin but it doesn't work!

@HyeonseoNam
Copy link
Owner

Hi, @dxcore35,

Can you provide more detailed usage instructions regarding what you are referring to?
You mean the YAML output type? If then, it should be possible to expand it in the near future.

@dxcore35
Copy link
Author

---
date: 2023-02-03
summary: 

---

This is YAML header.

I would like that there is command that will take all the note and create the summary and add it to field summary:

@HyeonseoNam
Copy link
Owner

HyeonseoNam commented Jul 11, 2023

Oh, that is a really good usage example.
Fortunately, you can already use that way !

Setting:

image

Note that I changed the custom prompt template to this:

Summarize this content in 100 characters:
"""
{{input}}
"""
Answer format is JSON {reliability:0~1, output:content}. 
Even if you are not sure, qualify the reliability and recommend a proper category.

and run Classify tag from Note Content (if note content is too long, it may cause an error)
or Classify tag from Selected Area

Result example:

image

@dxcore35
Copy link
Author

It is crazy. I used same prompt as you but is is giving me very bad summarization. Sometimes it is just taking what is in the note and put it there, no summarization.

What is this?

  • Answer format is JSON {reliability:0~1, output:content}.
  • Even if you are not sure, qualify the reliability and recommend a proper category.

@HyeonseoNam
Copy link
Owner

This prompt is more reliable.

Summarize this content in 3 sentences:
"""
{{input}}
"""
Answer format is JSON {reliability:0~1, output:summarized}. 
  • Answer format is JSON {reliability:0~1, output:content}.

-> This is intended to force the output of chatGPT in JSON format for postprocessing in plugin logic. If the reliability is too low, it will be treated as an error. Only the value after output: is needed.

  • Even if you are not sure, qualify the reliability and recommend a proper category.

-> I made a mistake. If not the classification case, it's better to remove it.

@dxcore35
Copy link
Author

Thank you. It is much better. But he is splitting lines in YAML which is not optimal.

@creuzerm
Copy link

I don't see how I can add this tool a second time to my obsidian to get both the tagging functionality as well as the summary functionality. Could we maybe get multiple/repeating tagging?

I can see this for adding this summary capability - which I like using with dataview to view a bit of what the notes are about. I am currently doing this with an external python script manually run weekly.

I would like also use the 'title' capability for my daily notes, which I am currently manually adding title addendums because just the date isn't helpful.

But I can also see this as a way to blend a number of 'curated' tags plus creating some new tags.

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

3 participants