Skip to content

Commit 40cfb43

Browse files
committed
enable azure sdk client tracing
1 parent 480f022 commit 40cfb43

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

app/backend/src/main/java/com/microsoft/openai/samples/rag/ask/approaches/RetrieveThenReadApproach.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@
2727
@Component
2828
public class RetrieveThenReadApproach implements RAGApproach<String, RAGResponse> {
2929
private static final Logger logger = LoggerFactory.getLogger(RetrieveThenReadApproach.class);
30-
private String indexContentFieldName = "content";
31-
private String indexSourcePageFieldName = "sourcepage";
32-
private String indexCategoryFieldName = "category";
33-
3430
private CognitiveSearchProxy cognitiveSearchProxy;
3531
private OpenAIProxy openAIProxy;
3632
public RetrieveThenReadApproach(CognitiveSearchProxy cognitiveSearchProxy, OpenAIProxy openAIProxy) {
@@ -147,15 +143,4 @@ private List<ContentSource> buildSourcesFromSearchResults(RAGOptions options, Se
147143
return sources;
148144
}
149145

150-
public void setIndexContentFieldName(String indexContentFieldName) {
151-
this.indexContentFieldName = indexContentFieldName;
152-
}
153-
154-
public void setIndexSourcePageFieldName(String indexSourcePageFieldName) {
155-
this.indexSourcePageFieldName = indexSourcePageFieldName;
156-
}
157-
158-
public void setIndexCategoryFieldName(String indexCategoryFieldName) {
159-
this.indexCategoryFieldName = indexCategoryFieldName;
160-
}
161146
}

app/backend/src/main/resources/application.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ spring.main.lazy-initialization=true
44
openai.service=${AZURE_OPENAI_SERVICE:cog-hxy5hdyir5eaa}
55
openai.chatgpt.deployment=${AZURE_OPENAI_CHATGPT_DEPLOYMENT:chat}
66
openai.gpt.deployment=${AZURE_OPENAI_GPT_DEPLOYMENT:davinci}
7-
openai.tracing.enabled=${AZURE_OPENAI_TRACING_ENABLED:false}
7+
openai.tracing.enabled=${AZURE_OPENAI_TRACING_ENABLED:true}
88

99
cognitive.search.service=${AZURE_SEARCH_SERVICE:gptkb-hxy5hdyir5eaa}
1010
cognitive.search.index=${AZURE_SEARCH_INDEX:gptkbindex}
11-
cognitive.tracing.enabled=${AZURE_SEARCH_TRACING_ENABLED:false}
11+
cognitive.tracing.enabled=${AZURE_SEARCH_TRACING_ENABLED:true}
1212

1313

1414
storage-account.service=${AZURE_STORAGE_ACCOUNT:sthxy5hdyir5eaa}

0 commit comments

Comments
 (0)