cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Generative AI
Explore discussions on generative artificial intelligence techniques and applications within the Databricks Community. Share ideas, challenges, and breakthroughs in this cutting-edge field.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Databricks Knowledge Assistant

IM_01
Valued Contributor

Hi All,

I've been exploring Knowledge Assistant and trying to understand how it works under the hood. I noticed it's built on the Instructed Retriever architecture, and I recently came across an update called Instructed-Retriever-1, which is supposed to deliver much faster results. Has this already been rolled out to all Databricks accounts, or is it still limited to certain users? Also, curious to understand - what exactly is different about Instructed-Retriever-1 compared to the original Instructed Retriever?

4 REPLIES 4

suryaprayaga
Contributor II

Yes this is very much implemented, however I haven't tested it much as much I have tested in Grafana's Assistant. The new feature Instructed-Retriever-1 is now conveniently called as Knowledge Assistant. 

How is Instructed-Retriever different from the latest Instructed-Retriever-1 a.k.a Knowledge Assistant?

Instructed-Retriever is more linear in nature - as in, it does not have any parallel searches, query comparisons etc., However the new Knowledge Assistant can run parallel queries and intelligently combined the evidence output to rank the results to give the best evidence. 

So in terms of quality and model accuracy I would say the new Knowledge Assistant is far better than the older one. However it will be proved eventually on several groundtruth facts validated earlier. 

suryaprayaga

IM_01
Valued Contributor

@suryaprayaga , I see the instructed-retriever-1 generates pair of query & filter, there can be filters that vector-index does not contain, what all metadata fields are persisted on vector-index , in case of llama-index we define the metadata columns to be persisted in vector-index right so how it works in case of KA. Wanted to understand the crux behind it.

tajamulkhan
Contributor

One useful way to evaluate Knowledge Assistant would be to separate retrieval quality from final answer quality.

I have worked on RAG applications and GenAI evaluation, and I would avoid judging the complete system using only whether the final answer sounds correct.

For example, suppose a document collection contains an original contract and a newer amendment.

  • The original contract specifies a payment period of 30 days.

  • The signed amendment changes the payment period to 45 days.

  • The user asks for the current payment terms.

A useful evaluation would check whether the retrieval process finds the amendment, whether the generated answer uses the correct value and whether the response provides appropriate supporting evidence.

I would build a small evaluation dataset containing questions with known expected answers and relevant source passages.

I would then measure:

  • Whether the required evidence was retrieved.

  • Whether the final answer matches the expected answer.

  • Whether the cited evidence supports the answer.

  • Whether the assistant handles missing or conflicting information appropriately.

I would also include questions that cannot be answered from the available documents.

A system that produces confident answers without adequate evidence may look impressive in a demo but become unreliable in production.

For me, the most useful comparison would be whether changes to the retrieval approach improve evidence coverage and answer correctness on the same evaluation dataset.

Armanillo_RoK
New Contributor III

Given the latest advancements the Knowledge Assistant is deprecated now, see:

https://learn.microsoft.com/en-us/azure/databricks/agents/legacy/


Commodore 64 - Ninja crush 'em all
https://youtu.be/RBvhfVGMsLQ?si=OfwbqWeygGUd_qU5