Coder Social home page Coder Social logo

Comments (10)

NivekT avatar NivekT commented on August 17, 2024

Hi @ayrtondenner, that definitely is a use case that we'd like to support.

I will look into it, but if someone wants to try implementing this, feel free to comment here. Two things I think we will need:

  • Support for Azure OpenAI in code/notebook
  • Support for Azure OpenAI in Playground

Just curious - is your primary use case within in the playground or within a notebook?

from prompttools.

ayrtondenner avatar ayrtondenner commented on August 17, 2024

Hi @NivekT , thanks for the answer.

In our case, we are looking to use prompttools via code, since our wish is to integrate it with an automatic pipeline to test our prompts before putting into production. So the idea here is to test a new prompt and check if it will break any known chat case.

from prompttools.

NivekT avatar NivekT commented on August 17, 2024

@ayrtondenner We have updated our OpenAICompletionExperiment API to support Azure. Here is a code example.

Let us know how it is working for you. Happy to make further changes if you experience any issue. Feel free to open a PR to make changes as well.

I will follow up and update the ChatExperiment as well. If there is interest to support Azure within the playground, please comment and let us know.

from prompttools.

NivekT avatar NivekT commented on August 17, 2024

@ayrtondenner I can confirm that we have added support for Azure in both chat and text completion. Let me know if it is working for you. We would also love to chat about your use cases.

from prompttools.

ayrtondenner avatar ayrtondenner commented on August 17, 2024

Is that already added in the pip library? I just tried it in a new Colab notebook but it didn't work:

TypeError: OpenAICompletionExperiment.__init__() got an unexpected keyword argument 'azure_openai_service_configs'

from prompttools.

NivekT avatar NivekT commented on August 17, 2024

Hi @ayrtondenner, we have not pushed a new package but we will do that today. In the meantime, it is available if you install from source by cloning the GitHub repo.

from prompttools.

NivekT avatar NivekT commented on August 17, 2024

@ayrtondenner We have pushed a new package. Let us know if it works for you!

from prompttools.

ayrtondenner avatar ayrtondenner commented on August 17, 2024

I got the following new error:

from prompttools import utils

AttributeError                            Traceback (most recent call last)
[<ipython-input-4-aab89cdcb7ec>](https://localhost:8080/#) in <cell line: 4>()
      2 from prompttools.experiment import OpenAIChatExperiment
      3 
----> 4 from prompttools import utils

9 frames
[/usr/local/lib/python3.10/dist-packages/numpy/__init__.py](https://localhost:8080/#) in __getattr__(attr)
    309             return val
    310 
--> 311         if attr in __future_scalars__:
    312             # And future warnings for those that will change, but also give
    313             # the AttributeError

AttributeError: module 'numpy' has no attribute '_no_nep50_warning'

from prompttools.

NivekT avatar NivekT commented on August 17, 2024

Thanks for flagging that!

At a quick glance, I can't tell if it an issue with our library. Do you have more information? Are you running on Colab such that you can provide a reproducible script?

It may be a numpy issue similar to this, can you update your numpy package? You may need a version > 1.21 .

As a workaround, you may be able to import the specific utils function that you need, rather than the whole submodule.

from prompttools.

NivekT avatar NivekT commented on August 17, 2024

Hi @ayrtondenner, since this feature has been added. I will close this for now. Don't hesitate to comment or reach out if anything is not working for you!

from prompttools.

Related Issues (20)

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.