Skip to content

Commit 6751618

Browse files
authored
Merge pull request #293 from terminusdb/add-change-request-optional
review the indexing error message
2 parents 260e4d5 + 412d50f commit 6751618

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/tdb-dashboard/src/pages/IndexingActionMonitor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ function ItemElement ({item}){
101101
let extraInfo = ""
102102
if(num === 0){
103103
extraInfo =<>
104-
<div>if you haven't done it already, Go to <NavLink to={`/${organization}/${dataProduct}/openai_configuration`} className={"mr-1"}>Open AI configuration </NavLink> page
105-
to add a graphql query and an handlebars template for every Document you would like to index</div></>
104+
<div>If not already configured, Go to <NavLink to={`/${organization}/${dataProduct}/openai_configuration`} className={"mr-1"}>Open AI configuration </NavLink> page
105+
and add a GraphQL query and a Handlebars template for each document you would like to index.</div></>
106106
}
107107

108108
return <><div>{message}</div>{extraInfo}</>

packages/tdb-dashboard/src/pages/utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ export const getGqlQuery = (str,setError)=>{
2222
export function formatError(errorStr,organization,dataProduct){
2323
if(typeof errorStr !=="string" ) return ''
2424
if(errorStr.search('Incorrect API key')> -1){
25-
return <>Incorrect API key Provided, You can find your API key at
25+
return <>Incorrect API key provided. Find your OpenAI API key at
2626
<a className="mr-1 ml-1 text-success" href="https://platform.openai.com/account/api-keys" target="_blank">
2727
https://platform.openai.com/account/api-keys </a></>
2828

2929
}else if (errorStr.search('missing field')> -1 || errorStr.search("input' is invalid.")> -1){
3030
return <>
31-
You can have an error in your graphql queries or handlebars templates.
31+
You have an error in your GraphQL query or Handlebars templates.
3232
<div>Go to <NavLink to={`/${organization}/${dataProduct}/openai_configuration`} className={"mr-1"}>Open AI configuration </NavLink> page
33-
to check your graphql queries and handlebars templates, load the query/template and use the 'Preview' button to see if there is any error</div></>
33+
to check your GraphQL queries and Handlebars templates. Load the query/template and use the 'Preview' button to check for errors.</div></>
3434
}
3535
return errorStr
3636
}

0 commit comments

Comments
 (0)