Download the PHP package yalesites-org/ai_feed without Composer

On this page you can find all versions of the php package yalesites-org/ai_feed. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ai_feed

AI Feed Module

Overview

The AI Feed module, developed by Yale ITS, is designed to create a feed of website content that can be ingested by and generate embeddings for an AI search service. The module leverages Drupal to query and prepare content for consumption by a language model integration framework, such as LangChain.

Features

Feed Shape

This module creates an endpoint of website content at api/ai/v1/content. Currently, this feed is limited to published nodes that are accessible to anonymous users. In the future, this may be expanded to include filters and new entity types. The shape of the JSON is as follows:

Data Fields

Data Field Type Description
id String A unique id used by the search index
documentType String Follows the pattern entityTypeId/bundle
documentId Int The entity id
documentTitle String The title or label of the entity
documentUrl String The absolute path to the canonical view
documentContent String The rendered default display of the entity
metaTags String Currently empty but will be used soon
metaDescription String Currently empty but will be used soon
dateCreated Date Created date as ISO 8601
dateModified Date Modified date as ISO 8601
dateProcessed Date When this record was generated as ISO 8601

Links Fields

Links Field Type Description
first String URL to the first page of results
prev String URL to the previous page of results
self String URL to the current page of results
next String URL to the next page of results
last String URL to the last page of results

Totals Fields

Links Field Type Description
total_records Int The total number of results
total_pages Int The total number of pages of results

Pagination

This API supports pagination returning 50 results per page. By default without any query parameters, the API defaults to page 1.

Query different pages with the ?page=x query parameter where x is a positive integer.

If there is not a previous or next page of results, the prev and next URL's will be empty strings.

Requirements

Contribution / Collaboration

You are welcome to contribute functionality, bug fixes, or documentation to this module. If you would like to suggest a fix or new functionality you may add a new issue to the GitHub issue queue or you may fork this repository and submit a pull request. For more help please see GitHub's article on fork, branch, and pull requests


All versions of ai_feed with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package yalesites-org/ai_feed contains the following files

Loading the files please wait ....