-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
67 lines (65 loc) · 1.89 KB
/
Copy pathindex.ts
File metadata and controls
67 lines (65 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/** Public barrel for Profile Q&A (local-index + agentic paths). */
export type { CheckAbuseContext } from "./abuse-defense";
export {
checkAbuse,
computeGoldenFallback,
getGoldenFallbackDetails,
resetAbuseStateForTests,
} from "./abuse-defense";
export type { AgenticRetrieval, QaMode } from "./config/resolve-qa-mode";
export {
isQARectorEnabled,
resolveAgenticRetrieval,
resolveQaMode,
} from "./config/resolve-qa-mode";
export { withLightweightRetry } from "./durable-retry";
export type { QaRequestContext } from "./gateway/handle-qa-request";
export { handleQaRequest, QaValidationError } from "./gateway/handle-qa-request";
export {
findGoldenMatch,
resolveGoldenAnswer,
} from "./golden-routing";
export type { ProfileSources } from "./persona-compiler";
export {
compileProfilePacket,
compileProfilePacketFromRawSources,
compileProfilePacketFromSources,
Q6_TONE_GUIDANCE,
} from "./persona-compiler";
export type { PersonaToolName } from "./persona-tools";
export {
__TEST_ONLY_formatSearchResults,
__TEST_ONLY_TOOL_PREFIXES__,
aiPersonaTools,
educationAndBackgroundTool,
personaToolRegistry,
personaTools,
principlesAndPhilosophyTool,
profileSearchTool,
projectsTool,
skillsTool,
workExperienceTool,
} from "./persona-tools";
export { runProfileQA as runLocalIndexQa } from "./profile-qa-generator";
export { qaCache } from "./qa-cache";
export type {
AbuseConfig,
AbuseResult,
CollectionRef,
IngestResult,
PersonaTool,
PersonaToolRegistry,
ProfilePacket,
QAResponse,
SearchResult,
} from "./types";
export {
collectionsClient,
XaiCollectionsApiError,
XaiCollectionsConfigError,
XaiCollectionsError,
XaiCollectionsTimeoutError,
} from "./xai-collections";
export const QA_REACTOR_FLAG = "qaReactor" as const;
export const NO_LOCAL_VECTORS_COMMENT =
"xAI Collections is the sole substrate. No local vectors in reactor path. See types.ts header.";