Replies: 1 comment 2 replies
-
Hi @dkbs12 I looked at the notebooks - why don't you simply use the original notebook? I don't understand what's the problem. Of course, in the second notebook, every time you ask a question you run everything from scratch, including downloading data, inserting data in db, pipeline creation etc etc. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As a result of modularization using the notebook introduced in the tutorial, a response time gap occurred between the existing notebook codes and the modularized notebook codes, so I would like to inquire about this.
I made an Extractive QA model using BM25 Retriever and Embedding Retriever by referring to the Haystack Tutorial.
When I use existing notebook coding, it takes less than 1 second to answer in the question & answer step
However, if it is modularized using functions, it takes more than 10 seconds on average to qnswer the question.
In my opinion, when processing the question & answer, only the Inferencing Samples process is performed in existing(original) notebook codings, but the additional Updating Embeddings process is performed in modularized codings, so I guess it takes more response time.
Even in a modularized case, is there any way to chieve the same response time of less than 1 second as with existing notebook coding?
Please note that one original notebook coding and two modularized codings have been uploaded to github as shown below.
Any advice or tips would be of great help to me.
thank you.
Beta Was this translation helpful? Give feedback.
All reactions