-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
322 additions
and
86 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
### Entity Extraction | ||
|
||
- [Ollama](https://ollama.com/): Get up and running with large language models, locally. | ||
- [Vicuna](https://vicuna.lmsys.org/): An Open-Source Chatbot Impressing GPT-4 with 90%* ChatGPT Quality. | ||
- [Phind-codellama](https://ollama.com/library/phind-codellama): Code generation model based on Code Llama. | ||
- [allenai/OLMo](https://github.com/allenai/OLMo): Modeling, training, eval, and inference code for OLMo. | ||
|
||
### Semantic Search and Reranking | ||
|
||
- [ParadeDB](https://www.paradedb.com/): ParadeDB is a modern Elasticsearch alternative built on Postgres. | ||
|
||
### Similar Projects | ||
|
||
- [Consensus](https://consensus.app/search/): Ask a question, get conclusions from research papers. | ||
|
||
### PDF Parsing | ||
|
||
- [Grobid](https://grobid.readthedocs.io/en/latest/Grobid-service/) | ||
- [pdffigures2](https://github.com/allenai/pdffigures2) |
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
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 |
---|---|---|
|
@@ -72,6 +72,7 @@ export const routes = [ | |
redirect: '/knowledge-table', | ||
}, | ||
{ | ||
path: '/*', | ||
component: './404', | ||
}, | ||
]; | ||
|
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 |
---|---|---|
@@ -1,10 +1,31 @@ | ||
import Footer from '@/components/Footer'; | ||
import Header from '@/components/Header'; | ||
import ErrorBoundary from '@/components/ErrorBoundary'; | ||
import { RequestConfig, history, RuntimeConfig } from 'umi'; | ||
import { PageLoading, SettingDrawer } from '@ant-design/pro-components'; | ||
import { Auth0Provider } from '@auth0/auth0-react'; | ||
import { CustomSettings, AppVersion } from '../config/defaultSettings'; | ||
import { getJwtAccessToken } from '@/components/util'; | ||
import * as Sentry from "@sentry/react"; | ||
|
||
// Configure Sentry for error tracking | ||
Sentry.init({ | ||
dsn: "https://[email protected]/4506958288846848", | ||
integrations: [ | ||
Sentry.browserTracingIntegration(), | ||
Sentry.replayIntegration({ | ||
maskAllText: false, | ||
blockAllMedia: false, | ||
}), | ||
], | ||
// Performance Monitoring | ||
tracesSampleRate: 1.0, // Capture 100% of the transactions | ||
// Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled | ||
tracePropagationTargets: ["localhost", /^https:\/\/drugs.3steps\.cn\/api/], | ||
// Session Replay | ||
replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production. | ||
replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur. | ||
}); | ||
|
||
// 运行时配置 | ||
// @ts-ignore | ||
|
@@ -48,6 +69,7 @@ export const request: RequestConfig = { | |
baseURL: apiPrefix, | ||
errorConfig: { | ||
errorHandler: (resData) => { | ||
console.log("errorHandler: ", resData); | ||
return { | ||
...resData, | ||
success: false, | ||
|
@@ -189,7 +211,9 @@ export const layout: RuntimeConfig = (initialState: any) => { | |
} else { | ||
return ( | ||
<> | ||
{children} | ||
<ErrorBoundary> | ||
{children} | ||
</ErrorBoundary> | ||
</> | ||
); | ||
} | ||
|
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.