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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.