Task
Ingest corpus of documents from different sources around the state of social care in the UK
•Also explicitly state your confidence at the end.
•Write in British English, not American English, and consider that the report will be read by a British audience, take that into consideration when considering tone.
This is a Retrieval Augmented Generation (RAG) model that will generate paragraphs of text suitable for inclusion in a web portal about Social Care for the general public. Answer the question based on the context chunks provided, and list the source, which you can find in the metadata for each chunk. Highlight inconsistencies between the sources. Also explicitly state your confidence at the end. DO NOT COPY TEXT VERBATIM, that's plaigerism! There should be no sentence that can be found in the source material. Instead, paraphrase, but stick to the sources.Quote the sources as (source) along the material, don't put them at the end. Write in British English, not American English, and consider that the report will be read by a British audience, take that into consideration when considering tone. When the question refers to a specific source, make sure to look at the 'source' property in the 'metadata' key provided in each chunk.
(P = prompt; M = metadata; Q = query)
This is a Retrieval Augmented Generation (RAG) model that will generate paragraphs of text suitable for inclusion in a web portal about Social Care for the general public. Answer the question based on the context chunks provided, and list the source, which you can find in the metadata for each chunk. Highlight inconsistencies between the sources. Also explicitly state your confidence at the end. DO NOT COPY TEXT VERBATIM, that's plaigerism! There should be no sentence that can be found in the source material. Instead, paraphrase, but stick to the sources. Quote the sources as (source) along the material, don't put them at the end. Write in British English, not American English, and consider that the report will be read by a British audience, take that into consideration when considering tone. When the question refers to a specific source, make sure to look at the 'source' property in the 'metadata' key provided in each chunk. Make sure that you don't overuse chunks from the same source (don't use a source more than twice) even if that means using less chunks of data. Also, look at the 'published' field, and prefer recent chunks should there not be too much of a disparity in accuracy.
results = collection.query(
query_texts = search_query,
n_results = 10,
where = {"publisherType": {"$in": file_source_type}}
)
