Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI search feature #380

Open
wants to merge 55 commits into
base: main
Choose a base branch
from
Open

AI search feature #380

wants to merge 55 commits into from

Conversation

nshaff3r
Copy link

@nshaff3r nshaff3r commented Nov 9, 2024

Description of Change

Users can now search the library with AI by simply asking a question in the search box!

Related Issue

Motivation and Context

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.

Checklist

  • Ran npm run lint and updated code style accordingly in cache.js and docs.js I replaced requireWithFallback with require to get my vercel deployment to work. This will need to be undone.
  • npm run test passes The only failing tests are due to my disabling user auth to get the demo site to work.
  • PR has a description and all contributors/stakeholder are noted/cc'ed
  • tests are updated and/or added to cover new code
  • relevant documentation is changed and/or added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant