-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
knowpro: Natural Language querying (#787)
First cut of natural language querying natively in knowpro: * searchSchema.ts, searchTranslator.ts to translate natural language to query filter * Compile/transform returned filter to knowpro terms and 'when/scope' filter (time ranges etc.) * kpSearch command in test app * Ongoing work, testing/refinement Testing: * Also implemented natural language search for knowpro using V1 translators and kpSearchV1 command
- Loading branch information
Showing
7 changed files
with
341 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
export type DateVal = { | ||
day: number; | ||
month: number; | ||
year: number; | ||
}; | ||
|
||
export type TimeVal = { | ||
// In 24 hour form | ||
hour: number; | ||
minute: number; | ||
seconds: number; | ||
}; | ||
|
||
export type DateTime = { | ||
date: DateVal; | ||
time?: TimeVal | undefined; | ||
}; | ||
|
||
export type DateTimeRange = { | ||
startDate: DateTime; | ||
stopDate?: DateTime | undefined; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.