Trying to make LLMs less stubborn in RAG (DSPy optimizer tested with knowledge graphs)

  Рет қаралды 2,737

Diffbot

Diffbot

Күн бұрын

Пікірлер: 10
@wadejohnson4542
@wadejohnson4542 8 ай бұрын
Until I saw this, I was starting to think that there was something wrong with me not being able to achieve magical improvements in results by using DSPy over meticulously hand-crafted prompts targeted at the observed quirkiness of specific LLMs. Thank you for restoring my self confidence. And now I'm also going to incorporate graph databases into my RAG pipelines after watching a couple of your videos.
@rahulvb5044
@rahulvb5044 8 ай бұрын
one basic doubt. def forward(self, question): # Step 1: Retrieve context based on the question context = self.retrieve(question).passages # Step 2: Generate an answer based on the context and question prediction = self.generate_answer(context=context, question=question) answer = prediction.answer # Step 3: Validate the answer type using the entity_linker function correct_question_type, original_answer_type, type_status = entity_linker(answer, question) # Optional: You can use the AnswerTypeValidityCheck signature for validation if needed validation = self.check_answer_type(entity_type=correct_question_type, question=question, answer=answer).type_status return dspy.Prediction(context=context, answer=answer, type_status=type_status) in this method, the answer returned is the one you got from self.generate_answer. That method doesnt use any entitylinker . so how is entitylinker influencing the answer ?
@pedromoya9127
@pedromoya9127 8 ай бұрын
thanks great video!
@somjrgebn
@somjrgebn 8 ай бұрын
Do you know of any efforts on converting these entities and relationships further into formal logic representations? Being able to pair these graph databases with formal logic representations would definitely help improve the quality of written text, organic exploration/discovery, and understanding over time.
@victoriamartindelcampo7827
@victoriamartindelcampo7827 8 ай бұрын
girl, u rock thank you so much for this!! Where can I follow you?
@shubhanshuyadav2437
@shubhanshuyadav2437 7 ай бұрын
Can't sign in diffbot even with non-gmail ID. Is it supposed to be so?
@GiveThanks-54
@GiveThanks-54 8 ай бұрын
Do you feel that nomic embeddings are adequate open-source embeddings model for RAG projects or do you recommend another?
DSPy with Knowledge Graphs Tested (non-canned examples)
11:28
Is Tree-based RAG Struggling? Not with Knowledge Graphs!
9:06
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
Reliable Graph RAG with Neo4j and Diffbot
8:02
Diffbot
Рет қаралды 21 М.
Things you should check before using Llama3 with DSPy.
8:20
Diffbot
Рет қаралды 3,9 М.
Building less wrong RAG with Corrective RAG?
7:08
Diffbot
Рет қаралды 3,3 М.
You Need Better Knowledge Graphs for Your Graph RAG
7:56
Leann Chen
Рет қаралды 37 М.
Why vector search is not enough and we need BM25
8:14
Diffbot
Рет қаралды 20 М.
Bay.Area.AI:  DSPy: Prompt Optimization for LM Programs, Michael Ryan
50:57