-
In Custom Embedding Provider For the function: async def search(self, text: str, max_results: int = 20) -> List[IndexItem]: Can anyone explain what needs to be returned in an IndexItem |
Beta Was this translation helpful? Give feedback.
Answered by
drazvan
Jun 14, 2024
Replies: 1 comment 1 reply
-
Is there any code with a fully implemented Custom Embedding Provider ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@NirnayK : the default implementation is a good reference point: https://github.com/NVIDIA/NeMo-Guardrails/blob/main/nemoguardrails/embeddings/basic.py.
And to respond to your questions:
text
is the text of the chunk.body
andtitle
for the kb;intent
for the user utterances).