Coder Social home page Coder Social logo

griptape-docs's People

Contributors

alexhiesch avatar andrewfrench avatar aodhanroche avatar atcol avatar cjkindel avatar collindutter avatar devinjones812 avatar dylanholmes avatar emjay07 avatar iloveitaly avatar kyleroche avatar mgcollie avatar raynorchavez avatar shhlife avatar stavsap avatar trish11953 avatar vachillo avatar vasinov avatar zachgiordano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

griptape-docs's Issues

getting errors from skatepark quick start

I was going through the quick start documentation for skatepark (https://griptape.readthedocs.io/en/latest/skatepark/quick_start/) and when I tried to use the "gpt-4" model in the following code it returned an error:

pipeline = Pipeline(
    memory = PipelineMemory(),
    prompt_driver = OpenAiPromptDriver(
        model="gpt-4"
    ),
    tool_loader = ToolLoader(
        tools=[scraper]
    )
)

The error was: ERROR:root:PromptDriver.run attempt 0 failed: The model: gpt-4 does not exist

If I commented out the prompt_driver section of the code so it uses the default, then I'm getting the following error:

Invalid JSON: {'value': 'https://en.wikipedia.org/wiki/Large_language_model'} is not of type 'string'

Failed validating 'type' in schema['properties']['value']:
    {'description': 'Valid HTTP URL', 'type': 'string'}

On instance['value']:
    {'value': 'https://en.wikipedia.org/wiki/Large_language_model'}

I thought that perhaps there was an issue with the WebScraper tool, as in visual studio code it is showing an error in the line `openai_api_key=config("OPENAI_API_KEY)

image

do you have any ideas or suggestions?

Thanks!
-Jason

Higher Level Examples For Loaders

The CSV (and other loader) docs should probably have 1 example of how to use the loaded info as well. I think ideally, you'd have 1 (or small number of) end to end example... then you could swap out the loader to adjust the code snippet to load from some other source type.

Decorator description bugs in griptape-tools RestApiClient

Docs for data

Add a "Data" section in the main framework section with the following topics covered:

  • Artifacts
  • Vector storage

Add documentation to handle dependencies for custom tools

Adding a custom tool allows for the user to include dependencies, but it's unclear how to use it other than add the dependency to requirements.txt.

We could improve the docs by explaining

  • Where import statements should go
  • What the dependencies_install_directory does

Clarify that we should have python-decouple installed in the QuickStart documentation

In the quickstart documentation the instructions say to install Skatepark, Griptape Tools, and Decouple, but then the code only shows:

pip install skatepark-lib griptape-tools

In Visual Studio Code I was getting a Pylance error:
image

so thought maybe I had to install decouple.

I did a pip install decouple which completely broke things. :)

I then had to pip uninstall decouple, and make sure python-decouple was up to date.

Probably best to call out python-decouple at the top of the QuickStart docs.

cheers,
Jason

Add a bit more detail to the Custom Tools documentation

The Custom Tools documentation could use a little more step-by-step instruction.

For this custom tool, is it recommended to create a tools folder in the current project, or add their custom tools to the griptape/tools folder?

Let's say they've got a project called learning_griptape, and they want to use the random_number_generator in a file called random_test.py.

If they create a tools directory, what is the recommended structure to get this to work correctly? I'm assuming something like:

learning_griptape/
  random_test.py
  tools/
    random_number_generator/
      __init__.py
      manifest.yaml
      requirements.txt
      tool.py

do you also need an init.py in the tools/ directory?

if that's the case, and the user wants to use the LocalExecutor() command specified in the docs, could you specify exactly the import calls in the random_test.py, and how you'd call RandomNumberGenerator?

I tried a number of things & couldn't get it working. I'm sure it's a simple thing, but since this is getting started documentation, it'd be good to include all of the steps.

thanks!
-Jason

Links to "Learn more about..." are broken on main page

Hello!

Just wanted to let you know that I noticed the "learn more" links are broken on the main docs page.

If you go to https://griptape.readthedocs.io/en/latest/ and click on the "Learn more about Griptape" or "Learn more about Skatepark" the links are missing "en/language" in the url.

They point to: https://griptape.readthedocs.io/griptape and https://griptape.readthedocs.io/skatepark, but should point to https://griptape.readthedocs.io/en/latest/griptape/ and https://griptape.readthedocs.io/en/latest/skatepark/ respectively.

Cheers!
-Jason

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.