RAGatouille
RAGatouille copied to clipboard
output only json?
How to return json only in results?
from ragatouille import RAGPretrainedModel query = ["query?"] RAG = RAGPretrainedModel.from_index(index_path) results = RAG.search(query,k=2) print(results) >>> Searcher loaded! #> QueryTokenizer.tensorize(batch_text[0], batch_background[0], bsize) == #> Input: .. bla bla *** I just want *** --> [{'content': ... ] is there a switch? to not get all the above gibberish?