Uploading small JSON-ified SQL database, Does referencing pre-uploaded files cost tokens?

Hi! Welcome to the forums!

You mean if you use the assistants retrieval tool? It’s possible, but who knows!

Well, you’re looking for similarity! That’s what embeddings are really good at.

I’d suggest you take a look at embeddings - for 300 books, you probably don’t even need a vector DB! just loop over your candidates, sort by cosine similarity, and take your top 3!

There’s more advanced methods, but it could be a start, let us know what you think!