Giter Site home page Giter Site logo

jcractionsforgpt's Introduction

Issues Stargazers MIT License


Logo

JCR Repository access actions for GPTs

This provides the action (incl. an OpenAPI declaration) useable for GPTs to read the JCR content repository in Apache Sling / AEM on configured paths.
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

Product Name Screen Shot

This is an OSGI bundle deployable on Apache Sling / Adobe Experience Manager (AEM) that provides the actions for a GPT to read the JCR content repository on configured paths. You can use it to direct ChatGPT to read the properties of (anonymously readable) JCR nodes and to read the contents of stored files, and answer questions, do summary tasks etc.

This is currently just done as minimal project so that it does what I need it to do. If it doesn't work for you please contact me - if there is somebody who is interested and willing to provide feedback and share his experiences, I'll be happy to help and extend it!

Preconditions: To use it you have to be a paying OpenAI ChatGPT customer, since otherwise GPTs aren't available for you.

Configuration: There is an OSGI configuration "ChatGPT JCR Actions" that configures the paths to be read, and an required API key for authentication. The API key should be a long random key that you can paste both into the configuration and into the authentication section of the GPT, and is responsible for the security. Additionally there is a number of regular expressions at which read access is permitted. The full path has to match any of the keys.

To be reachable from ChatGPT it needs to be accessible from the internet via HTTPS. The easiest way I know is using serveo.net. You can start it with:

ssh -T -R yourdomain.serveo.net:80:localhost:8080 serveo.net

Replace yourdomain with a prefix of your choice that contains some randomness to avoid collisions and replace 8080 with the port you are using for Apache Sling. The servlet only works if it was configured and is available at the URL /bin/public/gpt/jcractions .

Configure it as actions from a GPT: generally that works like GPT creation for Co-Developer GPT Engine , but you have to use the import URL https://yourdomain.serveo.net/bin/gpt/jcractions.yaml. You can either create a GPT that just has this as actions, or add this as additional actions to a Co-Developer GPT. IMPORTANT: you have to set the authentication type to "API Key", and paste the same API key that you configured in the OSGI configuration into the API key field and set Auth Type to Custom with custom header name X-JcrActions-Api-Key. You have to repeat that if you re-import the actions, or ChatGPT gives an empty answer with ClientError (which is a bug in ChatGPT).

CAUTION: if you do it like that it makes your local server reachable from the internet at yourdomain.serveo.net! If you have proprietary stuff on your server and / or use admin/admin as password, and that worries you, please configure a reverse proxy or something like that so that only that URL /bin/public/gpt/jcractions is reachable from the internet.

(back to top)

Getting Started

Prerequisites

Installation

(back to top)

Usage

(back to top)

Roadmap

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Hans-Peter Störr - www.stoerr.net , @HansPeterStoerr

Project Link: https://github.com/stoerr/JCRActionsForGPT

(back to top)

jcractionsforgpt's People

Contributors

stoerr avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

silasdao

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.