最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

rag - Firebase Genkit onCall function provide context from client app - Stack Overflow

programmeradmin2浏览0评论

I'm following along with the Firebase Genkit docs covering context. From reading the docs it seems as though I should be able to pass context to the flow from where I call the function in my client app (Next.js), however this doesn't seem to be working. Am I misunderstanding this? If so is it possible to somehow provider contextual data to the model from a client app?

Here is my code in a Next.js component:

const res = await embed({input: "", context: {companyId: "123"}});

I need to be able to tell the RAG retriever which Firestore collection to get the embeddings from and don't want to pass that through via the input.

发布评论

评论列表(0)

  1. 暂无评论