1+ namespace DemoServer . DataModel ;
2+
3+ /// <summary>
4+ /// Matching context returned by the data source as a result of a retrieval request.
5+ /// </summary>
6+ /// <param name="Name">The name of the source, e.g., a document name, database name,
7+ /// collection name, etc.</param>
8+ /// <param name="Category">What are the contents of the source? For example, is it a
9+ /// dictionary, a book chapter, business concept, a paper, etc.</param>
10+ /// <param name="Path">The path to the content, e.g., a URL, a file path, a path in a
11+ /// graph database, etc.</param>
12+ /// <param name="Type">The type of the content, e.g., text, image, video, audio, speech, etc.</param>
13+ /// <param name="MatchedContent">The content that matched the user prompt. For text, you
14+ /// return the matched text and, e.g., three words before and after it.</param>
15+ /// <param name="SurroundingContent">The surrounding content of the matched content.
16+ /// For text, you may return, e.g., one sentence or paragraph before and after
17+ /// the matched content.</param>
18+ /// <param name="Links">Links to related content, e.g., links to Wikipedia articles,
19+ /// links to sources, etc.</param>
20+ public readonly record struct Context (
21+ string Name ,
22+ string Category ,
23+ string ? Path ,
24+ ContentType Type ,
25+ string MatchedContent ,
26+ string [ ] SurroundingContent ,
27+ string [ ] Links ) ;
0 commit comments