Your website's content -> Q&A bot / chatbot
github.com
github.com
So basically get all the sub-prhases/sounds -> vector -> check vector db for closest matching documents -> send to gpt for summarization and answering the quetsion.
If that's ture wouldn't that have severe limitations with scattered information? I guess it would help you get answers and walk the data better than the "I don't even know the term" problem with google?
The 4 is a hyperparameter you can change, though, so you could set it to 10 as well.
The way it works is that it first looks up the N most relevant documents (N being 4 in the default case) in the FAISS store relevant to the question, so it uses distance of embedding vectors for this lookup.
Then it uses GPT3 to get summaries of the 4 entries related to the question and finally all the summaries together with the question will lead to the answer.
In doing so, you can trace the source where the answer came from and can also point to that URL in the end.
When you make N larger it just gets more expensive in terms of your API costs.
https://github.com/FeatureBaseDB/slothbot/blob/slothbot-work...
It would be nice to know from your experience if there is a kind of rule of thumb for calculating cost of fine tuning and running a solution like this against a docs site?
It cost around 0.05$ to create the embeddings for my ~50 blog entries.
Asking a question in the way I've described it also costs around 0.05$ via the API.
Perhaps it was the example I chose "flight time from New York to London" but I couldn't really get it to provide sensible search terms for the information it wanted or needed
Please advise. Thank you.
For anyone interested in an audio version that talks to you, that you can get on your site today, my brother put this together a few weeks ago! https://siteguide.ai/
Are you planning on adding agent/tools support?
It would be cool to use this with internal data, then allow clients to chat with a bot fine-tunes on their data, but that can also run queries, or get reports for specific dates, or charts, all via tools.
Might be a fun weekend experiment.
Should be fine, though, as it iterates over it, it creates embeddings and then stores them in the FAISS store (https://github.com/facebookresearch/faiss) which was created to handle a large amount of embeddings.
For the actual queries, it filters it down by the most relevant documents which are closest in the embedding space, so this should work.
Let me know how it goes!