GithubHelp home page GithubHelp logo

Comments (1)

elisalimli avatar elisalimli commented on May 30, 2024

We already do support this.

Unfortunately, we do not support through SDK for now. But users can still use it.

Here's a Python code example:

import requests
from superagent.client import Superagent
BASE_URL = "https://api.beta.superagent.sh"
API_KEY=""

client = Superagent(
   token=API_KEY,
   base_url=BASE_URL # or your local environment
)


workflow = client.workflow.create(
    request={
        "name": "Bantu Cosmology",
        "description": "Use the African Cosmology to answer any questions",
    }
)


SAML = """ 
workflows:
  - superagent:
      llm: gpt-4-turbo-preview
      name: Browser assistant
      intro: Hi there! How can I help search for answers on the internet.
      prompt: Use the African Cosmology to answer any questions
      superrag:
        - index:
            name: Bantu Cosmology
            urls:
              - https://humana-2.s3.amazonaws.com/African+Cosmology+Bantu+Kongo.pdf
            use_for: Answering questions about African Cosmology
            interpreter_mode: false
            database_provider: qdrant 
"""
requests.post(
    f"{BASE_URL}/api/v1/workflows/{workflow.data.id}/config",
    headers={
        "Content-Type": "application/x-yaml",
        "Authorization": f"Bearer {API_KEY}",
    },
    data=SAML,
).json()    

from superagent.

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.