diff --git a/AISearchDemo.gif b/AISearchDemo.gif new file mode 100644 index 00000000..0b5dccb6 Binary files /dev/null and b/AISearchDemo.gif differ diff --git a/README.md b/README.md index 50be859e..1cf75b2f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,21 @@ +# Introducing AI powered search for Library! + +Users can now search the library with AI by simply asking a question in the search box! + +You can find a full demo [here](https://llm-docs-library.vercel.app/). +

+**Features:** +- Returns a concise summary along with relevant documents, creating a more powerful search than keywords. +- Fetches entire document base for AI query using existing infrastructure that supports caching. +- Supports chunking of AI requests for models with smaller token limits. +- Can query multiple times and combine responses for greater accuracy using the `LLM_API_CALLS` environment variable. +- Makes API and fetch requests in parallel. +- Defaults to a null answer to avoid hallucinations. +- Uses both desktop and mobile-friendly front-end animations. + +AI search feature demo gif + + Library ![Supported node versions](https://img.shields.io/badge/dynamic/json?color=informational&label=node&query=%24.engines.node&url=https%3A%2F%2Fraw.githubusercontent.com%2Fnytimes%2Flibrary%2Fmain%2Fpackage.json) [![Tests](https://github.com/nytimes/library/actions/workflows/test.yaml/badge.svg)](https://github.com/nytimes/library/actions/workflows/test.yaml) ======== diff --git a/index.yaml b/index.yaml new file mode 100644 index 00000000..ce145d62 --- /dev/null +++ b/index.yaml @@ -0,0 +1,13 @@ +indexes: + - kind: LibraryViewTeam + properties: + - name: userId + direction: asc + - name: viewCount + direction: desc + - kind: LibraryViewTeam + properties: + - name: userId + direction: asc + - name: lastViewedAt + direction: desc diff --git a/layouts/categories/default.ejs b/layouts/categories/default.ejs index d9464c45..e3fa5b88 100644 --- a/layouts/categories/default.ejs +++ b/layouts/categories/default.ejs @@ -1,6 +1,8 @@ <%- include('partials/head', {formatUrl, pathPrefix}) %> + +

Default template

<%- include('partials/header', {formatUrl}) %> diff --git a/layouts/pages/index.ejs b/layouts/pages/index.ejs index 446897a1..d91d6fd9 100644 --- a/layouts/pages/index.ejs +++ b/layouts/pages/index.ejs @@ -2,7 +2,6 @@ <%- include('partials/head', {title: template('branding.prettyName'), formatUrl, pathPrefix}) %> -