Skip to content

Conversation

@newtork
Copy link
Contributor

@newtork newtork commented Jan 7, 2026

Clarified the warning about model and client classes generated from OpenAPI specifications, emphasizing stability and maintenance.
Clarified stability and maintenance of generated classes.
Added examples for document creation and search using the Vector API.
Added examples for collection and document creation using the Vector API.
@newtork newtork added the java Pull requests that update java code label Jan 7, 2026
.key("animal").value("dog")))
.metadata(DocumentKeyValueListPair.create()
.key("topic").value("sound")));
DocumentsListResponse response = api.createDocuments(resourceGroupId, collectionId, request);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Document creation is not compiling

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var request =
    DocumentCreateRequest.create()
        .documents(
            BaseDocument.create()
                .chunks(
                    TextOnlyBaseChunk.create()
                        .content("The dog makes _woof_")
                        .metadata(VectorKeyValueListPair.create().key("animal").value("dog")))
                .metadata(VectorDocumentKeyValueListPair.create().key("topic").value("sound")));

Comment on lines +82 to +84
Collection creation:

```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Collection creation:
```
#### Collection creation:
```java

String collectionId = locationHeader.replaceAll("^.*?/([a-f0-9-]+)/.*?$", "$1");
```

Document creation:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Document creation:
#### Document creation:

DocumentsListResponse response = api.createDocuments(resourceGroupId, collectionId, request);
```

Document search:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Document search:
#### Document search:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

java Pull requests that update java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants