Comments (11)
Thanks for sharing this beta feedback @hind214875 -- @mssfang can you please follow up?
from azure-sdk-for-java.
Thank you for reporting this issue. @hind214875
Can you try update pom dependency as below?
<dependencies>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-ai-openai</artifactId>
<version>1.0.0-beta.6</version>
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-search-documents</artifactId>
<version>11.6.0-beta.7</version>
<exclusions>
<exclusion>
<groupId>com.azure</groupId>
<artifactId>azure-core-serializer-json-jackson</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
from azure-sdk-for-java.
Hi @hind214875. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.
from azure-sdk-for-java.
Hi mssfang!
Thank you for your reply, but unfortunately it is still not working.
from azure-sdk-for-java.
Hi mssfang! Thank you for your reply, but unfortunately it is still not working.
Thanks for the try out. Is possible we can have a sample code that can reproduce this issue?
from azure-sdk-for-java.
Is possible we can have a sample code from your side that can use to reproduce the issue?
I have tried to use following codesnippet to reproduce the issue but find there is able to get the URL and filePath.
String azureSearchIndexName = "openai-test-index-carbon-wiki"; // "hotels-vector-sample-index"
AzureCognitiveSearchChatExtensionConfiguration searchConfiguration =
new AzureCognitiveSearchChatExtensionConfiguration(
new AzureCognitiveSearchChatExtensionParameters(azureSearchEndpoint, azureSearchIndexName)
.setAuthentication(new OnYourDataApiKeyAuthenticationOptions(azureSearchAdminKey))
.setQueryType(AzureCognitiveSearchQueryType.SIMPLE) // SIMPLE, VECTOR, or Hybrid
.setInScope(true)
.setTopNDocuments(2)
// the deployment name of the embedding model when you are using a vector or hybrid query type
.setEmbeddingDependency(new OnYourDataDeploymentNameVectorizationSource("text-embedding-ada-002"))
.setFieldsMapping(
new AzureCognitiveSearchIndexFieldMappingOptions()
.setFilepathField("setupwinenv.md")
)
);
String question = "How to build carbon on Windows";
List<ChatRequestMessage> chatMessages = new ArrayList<>();
chatMessages.add(new ChatRequestUserMessage(question));
ChatCompletionsOptions chatCompletionsOptions = new ChatCompletionsOptions(chatMessages)
.setDataSources(Arrays.asList(searchConfiguration));
ChatCompletions chatCompletions = client.getChatCompletions(deploymentOrModelId, chatCompletionsOptions);
System.out.println("Question: " + question);
for (ChatChoice choice : chatCompletions.getChoices()) {
ChatResponseMessage message = choice.getMessage();
System.out.printf("Answer: %s%n%n", message.getContent());
// If Azure OpenAI chat extensions are configured, this array represents the incremental steps performed
// by those extensions while processing the chat completions request.
List<ChatResponseMessage> contextMessages = message.getContext().getMessages();
for (ChatResponseMessage contextMessage : contextMessages) {
System.out.println("Context Message: ");
System.out.println(" - " + contextMessage.getContent());
}
}
Hi mssfang! Thank you for your reply, but unfortunately it is still not working.
from azure-sdk-for-java.
Hi @hind214875. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.
from azure-sdk-for-java.
Hi @hind214875, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!
from azure-sdk-for-java.
Hi mssfang!
Sorry for the late replay, I actually tested yesterday again and this time it works i didn't change anything so i don't really know why it works now. Thank you for your help :)
from azure-sdk-for-java.
@hind214875 Glad to see that works. BTW, we have a new beta, beta.7 released that includes some breaking change and new features Text-to-Speech.
from azure-sdk-for-java.
Hi @hind214875. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.
from azure-sdk-for-java.
Related Issues (20)
- [BUG] "No registered resource provider found for location 'eastus2' and API version '2018-01-01' for type 'storageAccounts/blobServices' HOT 5
- [Monitor Query] Add sovereign cloud support for batch metrics query API
- [QUERY] Is there a reactive alternative to `new DefaultAzureCredentialBuilder().build()` HOT 4
- [BUG] OpenAI completions can not be streamed in some cases HOT 1
- [BUG] User Delegation Key signed SAS not working with SharedAccessBlobHeaders HOT 5
- Ref docs issue HOT 1
- Error Setup of JMS message listener invoker failed for destination <subscription> - trying to recover. Cause: The Session is closed HOT 3
- netty error in spring boot version 3.0.5 by implementing azure key vault HOT 2
- [QUERY] Guide on customization, when polymorphic class be customized to be "abstract"
- [QUERY] further design discussion for multipart/form-data HOT 4
- [QUERY] Will the BatchAccounts be supported in the AzureResourceManager? HOT 4
- [QUERY] Token refresh/Connection issues with Service Bus Client HOT 9
- ServiceBus Client is not surfacing connection errors HOT 2
- [BUG]QueryPlan diagnostics improvement
- Identity April GA Blog Post HOT 1
- [BUG] WordBoundary events not firing reliably HOT 6
- Set http client options for blob service client HOT 4
- [BUG] no convenience API to set PublicNetworkAccess in Vault HOT 2
- [BUG] Azure Cosmos DB OLTP Spark 3 connector not dealing at all with large partition key support HOT 2
- [FEATURE REQ] - Add @JsonProperty Tests to azure-spring-data-cosmos
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-sdk-for-java.