CellsAI.SpreadsheetQuestion

SpreadsheetQuestion(string, string, TextWriter)

Get answer of the question from the spreadsheet,using TextWriter to write the result

public Task SpreadsheetQuestion(string path, string question, TextWriter writer)
ParameterTypeDescription
pathStringthe file path
questionStringthe question
writerTextWriterthe TextWriter to write the result

See Also


SpreadsheetQuestion(string, string)

Get answer of the question from the spreadsheet

public string SpreadsheetQuestion(string path, string question)
ParameterTypeDescription
pathStringthe file path
questionStringthe question

Return Value

AI query response

Examples

[C#]
CellsAI cellsAI = new CellsAI(AIRootUrl, AIKey);
String question = @"Which year had the highest total sales revenue?";
String path = "D:\\sales_report.xlsx";
String ret= cellsAI.SpreadsheetQuestion(path, question);

See Also