Create-UI is the fastest way to generate a Vectara-powered sample codebase for a range of user interfaces:
Use this tool to:
[!TIP]
Looking for something else? Try another open-source project:
- React-Chatbot: Add a compact Vectara-powered chatbot widget chat to your React apps.
- React-Search: Add Vectara semantic search to your React apps with a few lines of code.
- Vectara Answer: Demo app for Summarized Semantic Search with advanced configuration options.
- Vectara Ingest: Sample templates and crawlers for pulling data from many popular data sources.
Create-UI expects you to have Node v18 or higher and NPM installed on your system.
npx @vectara/create-ui
Follow the prompts in the command line to generate a React codebase. You can choose to use our sample data, which is ideal for folks who don't have a Vectara account yet. If you already have data in Vectara you can configure the UI to connect to it.
When the prompts are complete, run the build command provided to you. You'll see the UI running in your browser.
The Chat UI is characterized by:
The Semantic Search UI is characterized by:
A user will typically scan the list for relevant results and dig deeper into any results that look interesting. They'll try variations on the same basic query to make sure they find as many potentially useful results as possible.
The Summarized Semantic Search UI is characterized by:
A user will typically scan the summary for points of interest, which is faster than reviewing the list of search results. If an aspect of the summary catches their eye, they'll dig deeper into the cited search result. They'll repeat this pattern until they've reviewed all of the interesting information that was relevant to their query.
The Question and Answer UI is characterized by:
A user will typically scan the answer to see if it truly answers their question. They'll use the citations to verify that the answer is grounded in facts. If the answer doesn't fully answer their question they'll try again with a differently-worded question.
You can configure a Create-UI app to use our sample data or to pull data from your Vectara corpus. To set this up:
Pro-tip: After you create an API key, navigate to your corpus and click on the "Access control" tab. Find your API key on the bottom and select the "Copy all" option to copy your customer ID, corpus ID, and API key. This gives you all the data you need to configure a Create-UI app.
Vectara enables you to define metadata on your documents. Create-UI apps behave differently based on the presence of specific metadata fields:
title
: If this field is defined it will be rendered as the title of a search result. Typically this is something like the title of the document or webpage.url
: If this field is defined, the UI will render the search result as a link to the defined URL.Create-UI is an open-sourced software licensed under the Apache 2.0 license.
This repository contains sample code that can help you build UIs powered by Vectara, and is licensed under the Apache 2.0 License. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.