Pega Knowledge Buddy Data Sources Ingestion

We are trying to implement Pega Knowledge buddy in Labs environment. We have created the buddy, data source(using regular Pega Knowledge) and ingested the same.

For all the request(question API) we are getting the response as “I don’t know” from Knowledge buddy.

On further analysis we got the below error in the logs.

Can someone help us understand the issue here.

Error:

com.pega.platform.genai.vectorindex.VectorIndexException: Received status 500 from ‘queryChunks’ for query [User Consent Management] and search options: SearchOptions{k=5, minDistance=0.7, limitToTopChunkPerObject=false, attributesToRetrieve=[roles, dataSource], filterAttributes=Attributes{attributes={roles=Attribute{name=roles, values=[KnowledgeBuddy:Admin, KnowledgeBuddy:Public], type=string, operator=in}, dataSource=Attribute{name=dataSource, values=[knowledge_KC-2086, Knowledge_KC-2086, Knowledge_KC-2085, Knowledge_KCP-5161], type=string, operator=in}}}}. Error: {“code”:500,“message”:“error while querying chunks: ERROR: relation "i_pega_knowledge_embeddings" does not exist (SQLSTATE 42P01)”}

@Upalabdhi Here is the documentation:

Pega GenAI™ Knowledge Buddy '24.1

Configuring the implementation application for widget integration

Enabling Pega Knowledge Buddy for an IVA

![o].png|1568x252](upload://wdiEODlyXfq4L2QIqL4poINBDSZ.png)

If you are licensed then you will be provisioned with a vector store service which is a requirement for using Buddy.

:warning: This is a GenAI-powered tool. All generated answers require validation against the provided references.

It seems like you are encountering a ‘VectorIndexException’ with a status 500 error while using the Question API. This error indicates that there is a configuration problem related to the vector index. Specifically the error message ‘relation i pega knowledge embeddings does not exist’ suggests that the necessary embeddings table is missing or not properly configured in your database. Here are a few steps to troubleshoot and resolve this issue:

  1. Check Data Source Manager Role: Ensure that the user has been assigned the Data Source Manager role. This role is necessary for managing data sources and might be causing the issue if not assigned.

  2. Verify Knowledge Buddy Roles: Make sure that the user has the appropriate Knowledge Buddy roles assigned. Without the necessary roles the user might not have access to the ingested content.

  3. Contact Cloud Team: If the issue persists it might be a deeper configuration problem. In such cases it is recommended to contact the Cloud Team for further assistance.

  4. Trace the Code: If all else fails trace the code to identify any potential issues that might be causing the error.

Troubleshooting Knowledge Buddy

If you are licensed, please file a ticket with support and let us know the INC id here.

Note: Buddy ONLY works on a Cloud-3 instance. There is no other place to install a buddy and have it supported.

I am not sure that a Pega Lab is considered ‘Licensed’. You must have a license and be provisioned your own hardware in order to use buddy.

@JamesCarstairs please can you comment?

@Upalabdhi From where you are Ingesting the Data and creating the Data source ? From Pega Knowledge Management ?

From Pega Knowledge Management

  1. OAuth/Authentication configuration should done between KBApp to KMApp.

  2. In App studio-> Configuration-Index should be set to true

  3. Update the Buddy Name Knowledge Management and Knowledge Buddy widget

From Pega Knowledgement Publish the article and test it.

Thanks,

Vikram