-
|
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:
textis the text of the chunk.bodyandtitlefor the kb;intentfor the user utterances).