Coder Social home page Coder Social logo

kkpan11 / nebuly Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nebuly-ai/nebuly

0.0 1.0 0.0 4.26 MB

The next-generation platform to monitor and optimize your AI costs in one place 🚀

Home Page: https://www.nebuly.com/

License: Apache License 2.0

Shell 0.47% Python 79.26% Makefile 0.04% CMake 3.25% Jupyter Notebook 16.80% Dockerfile 0.17%

nebuly's Introduction

Nebuly - The User Analytics Platform for LLMs

This is the official Python SDK for Nebuly. Nebuly is the user analytics platform for LLMs enabling you to automatically capture how your users interact with your models. The platform helps you understand what your LLM users like, what they don’t and why, what are the most asked questions and how you can improve your LLMs products to delight your customers.

Installation

The easiest way to install Nebuly’s SDK is via pip:

pip install nebuly

Once installed, authenticate to Nebuly platform and start building.

Get started

Tracking interactions to Nebuly is incredibly easy and requires just two lines of code. Use your LLMs as always, all you need to do is:

  1. Include Nebuly's API key.
  2. Add the user_id parameter within your model call.

With these simple additions, you can start tracking interactions to Nebuly in less than 2 minutes.

import nebuly
import openai

nebuly.init(api_key="<nebuly_api_key>")
openai.api_key = "<your_openai_api_key>"

response = openai.ChatCompletion.create(
    model="gpt-3.5-turbo",
    messages=[
        {
            "role": "system",
            "content": "You are an helpful assistant"
        },
        {
            "role": "user",
            "content": "Hello, I need help with my computer"
        }
    ],
    user_id="test_user",
)

We support also Azure OpenAI, HuggingFace, Cohere, Anthropic, VertexAI and Bedrock. To learn more please visit the documentation.

nebuly's People

Contributors

valeriosofi avatar francis-oss avatar diegofiori avatar pierpaolosorbellini avatar cccntu avatar aurimgg avatar telemaco019 avatar mfumanelli avatar emilecourthoud avatar vinishuchiha avatar aanirudh07 avatar shrinath-suresh avatar eltociear avatar thesekyi avatar mountinyy avatar socschamp avatar supersecurehuman avatar solomidhero avatar reiase avatar brianpulfer avatar kartikeyporwal avatar huanglk avatar egrefen avatar ariangh1 avatar cyclotomicextension avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.