Skip to main content
此工具包允许您与 Azure 认知服务 API 交互,以便在 LangChain 内启用多模态功能。 目前,工具包包含:
  • AzureCogsImageAnalysisTool — 从图像中提取标题、对象、标签和文本
  • AzureCogsFormRecognizerTool — 从文档中提取文本、表格和键值对
  • AzureCogsSpeech2TextTool — 将语音转录为文本
  • AzureCogsText2SpeechTool — 将文本合成为语音
  • AzureCogsTextAnalyticsHealthTool — 提取医疗实体
⚠️ 图像分析工具在 macOS 上不可用,因为 azure-ai-vision 目前仅支持 Windows/Linux。

安装

text
Entering new AgentExecutor chain…
Action:
Observation: Caption: a group of eggs and flour in bowls Objects: Egg, Egg, Food Tags: dairy, ingredient, indoor, thickening agent, food, mixing bowl, powder, flour, egg, bowl Thought: I can use the objects and tags to suggest recipes Action:
Finished chain. text ‘You can make pancakes, omelettes, or quiches with these ingredients!’
text
Entering new AgentExecutor chain… Action:
Observation: /tmp/tmpa3uu_j6b.wav Thought: I have the audio file of the joke Action:
Finished chain. text ‘/tmp/tmpa3uu_j6b.wav’
text
Entering new AgentExecutor chain… Action:
Observation: The text conatins the following healthcare entities: 54-year-old is a healthcare entity of type Age, gentleman is a healthcare entity of type Gender, progressive angina is a healthcare entity of type Diagnosis, past several months is a healthcare entity of type Time, cardiac catheterization is a healthcare entity of type ExaminationName, July of this year is a healthcare entity of type Time, total is a healthcare entity of type ConditionQualifier, occlusion is a healthcare entity of type SymptomOrSign, RCA is a healthcare entity of type BodyStructure, 50 is a healthcare entity of type MeasurementValue, % is a healthcare entity of type MeasurementUnit, left main is a healthcare entity of type BodyStructure, disease is a healthcare entity of type Diagnosis, family is a healthcare entity of type FamilyRelation, coronary artery disease is a healthcare entity of type Diagnosis, brother is a healthcare entity of type FamilyRelation, dying is a healthcare entity of type Diagnosis, 52 is a healthcare entity of type Age, myocardial infarction is a healthcare entity of type Diagnosis, brother is a healthcare entity of type FamilyRelation, coronary artery bypass grafting is a healthcare entity of type TreatmentName, stress echocardiogram is a healthcare entity of type ExaminationName, July, 2001 is a healthcare entity of type Time, wall motion abnormalities is a healthcare entity of type SymptomOrSign, body habitus is a healthcare entity of type SymptomOrSign, six minutes is a healthcare entity of type Time, minimal is a healthcare entity of type ConditionQualifier, ST depressions in the anterior lateral leads is a healthcare entity of type SymptomOrSign, fatigue is a healthcare entity of type SymptomOrSign, wrist pain is a healthcare entity of type SymptomOrSign, anginal equivalent is a healthcare entity of type SymptomOrSign, increased is a healthcare entity of type Course, symptoms is a healthcare entity of type SymptomOrSign, family is a healthcare entity of type FamilyRelation, left is a healthcare entity of type Direction, main is a healthcare entity of type BodyStructure, disease is a healthcare entity of type Diagnosis, occasional is a healthcare entity of type Course, RCA is a healthcare entity of type BodyStructure, revascularization is a healthcare entity of type TreatmentName, open heart surgery is a healthcare entity of type TreatmentName Thought: I know what to respond Action:
Finished chain. text ‘The text contains the following diagnoses: progressive angina, coronary artery disease, myocardial infarction, and coronary artery bypass grafting.’