Closed behrica closed 1 year ago
I though about this and for the moment I don't think new code in bosque is required. A bosquet user can implement his own function for finding similar text to a given text and inject those into a template. This is what vector databases allow to do via API call,
Having an "abstraction" for this in bosquet would not be idiomatic for clojure, I think
One key required of using LLMs with longer texts is to "find for a given text similar texts somehow". Having this would allow templates such as:
together with code such as:
Fn "similar" would simply return a list of semantic similar texts to a given text (likely using embeddings and a vector database) More then one implementation possible.
In this way we would
not sure, if this requires any new code in bosquet. A concrete implementation of "similar" depends for sure on the underlying vector store, if used