briansunter / logseq-plugin-gpt3-openai

A plugin for GPT-3 AI assisted note taking in Logseq
https://twitter.com/bsunter
MIT License
710 stars 69 forks source link

FR: Mem-style note aware prompts #60

Open arminta7 opened 1 year ago

arminta7 commented 1 year ago

Would it be possible to do a mem-style feature by utilizing search first within the graph then sending the relevant results as part of the prompt to gpt3?

This might even be more useful or effective than fine tuning since fine tuning doesn't teach facts well.

arminta7 commented 1 year ago

Could this be helpful? https://openai.com/blog/new-and-improved-embedding-model/

briansunter commented 1 year ago

This is a really good idea. I've been thinking about something where you can provide a logseq query or search that would inject the text from the results/pages into the prompt https://github.com/briansunter/logseq-plugin-gpt3-openai/issues/39

I also had some ideas to pull in web searches like Wikipedia https://github.com/briansunter/logseq-plugin-gpt3-openai/issues/36

arminta7 commented 1 year ago

Also https://github.com/openai/openai-cookbook/blob/main/examples/Question_answering_using_embeddings.ipynb