rag-chat icon indicating copy to clipboard operation
rag-chat copied to clipboard

Finding possible integrations

Open ogzhanolguncu opened this issue 1 year ago • 5 comments

There are a few LLM observability tools we can integrate, but we need to check their feasibility first. For now, we can start with:

  • [x] LangSmith
  • [ ] Promptlayer
  • [ ] LLMonitor
  • [ ] Langfuse
  • [ ] Guardrails AI
  • [ ] PromptTest

Any PR that includes these tools is welcome.

ogzhanolguncu avatar Aug 12 '24 07:08 ogzhanolguncu

@ogzhanolguncu Should we implement these in the example code or the source code? I want to clarify where they should be integrated.

ManojBuilds avatar Aug 13 '24 03:08 ManojBuilds

Well, I already finished Langsmith. Most of the products above are analytic tools so we should extend our SDK with those. Right now whenever we initialize a model we do this:

const ragChat = new RAGChat({
    vector,
    model: upstash("meta-llama/Meta-Llama-3-8B-Instruct", {
      analytics: { name: "langsmith", token: "XXX" },
    }),
  });

We just need to add some more. At least check its feasibility.

ogzhanolguncu avatar Aug 13 '24 07:08 ogzhanolguncu

Hi @ogzhanolguncu, what do you think about integrating Cloudflare Gateway AI?

I think we can implement it within the same way that you implemented LangSmith for observability.

umutbozdag avatar Aug 16 '24 08:08 umutbozdag

I agree. Feel free to give it a try.

ogzhanolguncu avatar Aug 16 '24 08:08 ogzhanolguncu

I have opened a PR for it @ogzhanolguncu. Can you please check? #58

umutbozdag avatar Aug 16 '24 09:08 umutbozdag