Method and system for calculating domain relevance scores for responses generated by large language models
AssigneeHCL Technologies Limited
InventorsSasikumar Shanmugam, Yogesh Gupta, Harikrishna C Warrier
Life of this patent
Estimating the term…
Loading patent…
AssigneeHCL Technologies Limited
InventorsSasikumar Shanmugam, Yogesh Gupta, Harikrishna C Warrier
Estimating the term…
A method for calculating domain relevance scores for responses generated by LLMs is disclosed. The method includes receiving a response generated by LLM corresponding to user query. The user query is associated with a domain. The method further includes splitting the response into a plurality of response chunks using a splitting technique. The method further includes generating a plurality of response vector embeddings based on the plurality of response chunks using at least one sentence transformer. The method further includes computing a plurality of cosine distances between the plurality of response vector embeddings and a corresponding plurality of training data vector embeddings, wherein the plurality of training data vector embeddings corresponds to domain-specific training data of the LLM. The method further includes calculating a domain relevance score corresponding to the response, based on a sum of the plurality of cosine distances and a number of the plurality of chunks.
A method for calculating domain relevance scores for responses generated by Large Language Models (LLMs), the method comprising:
A system for calculating domain relevance scores for responses generated by Large Language Models (LLMs), the system comprising:
A non-transitory computer-readable medium storing computer-executable instructions for calculating domain relevance scores for responses generated by Large Language Models (LLMs), the stored instructions, when executed by a processor, cause the processor to perform operations comprises:
Dependencies are inferred from the claim text.