-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from MuleSoft-AI-Chain-Project/develop
Develop
- Loading branch information
Showing
26 changed files
with
356 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 13 additions & 3 deletions
16
...in/java/org/mule/extension/mulechain/vectors/api/metadata/DocumentResponseAttributes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
package org.mule.extension.mulechain.vectors.api.metadata; | ||
|
||
import org.mule.runtime.extension.api.annotation.param.MediaType; | ||
|
||
import java.io.Serializable; | ||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
import static org.mule.runtime.extension.api.annotation.param.MediaType.APPLICATION_JSON; | ||
|
||
public class DocumentResponseAttributes implements Serializable { | ||
|
||
private final HashMap<String, String> documentAttributes; | ||
private final HashMap<String, Object> requestAttributes; | ||
|
||
public DocumentResponseAttributes(HashMap<String, String> documentAttributes) { | ||
public DocumentResponseAttributes(HashMap<String, Object> requestAttributes) { | ||
|
||
this.requestAttributes = requestAttributes; | ||
} | ||
|
||
this.documentAttributes = documentAttributes; | ||
@MediaType(value = APPLICATION_JSON, strict = false) | ||
public Map<String, Object> getRequestAttributes() { | ||
return requestAttributes; | ||
} | ||
} |
16 changes: 13 additions & 3 deletions
16
...n/java/org/mule/extension/mulechain/vectors/api/metadata/EmbeddingResponseAttributes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
package org.mule.extension.mulechain.vectors.api.metadata; | ||
|
||
import org.mule.runtime.extension.api.annotation.param.MediaType; | ||
|
||
import java.io.Serializable; | ||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
import static org.mule.runtime.extension.api.annotation.param.MediaType.APPLICATION_JSON; | ||
|
||
public class EmbeddingResponseAttributes implements Serializable { | ||
|
||
private final HashMap<String, String> embeddingAttributes; | ||
private final HashMap<String, Object> requestAttributes; | ||
|
||
public EmbeddingResponseAttributes(HashMap<String, String> embeddingAttributes) { | ||
public EmbeddingResponseAttributes(HashMap<String, Object> requestAttributes) { | ||
|
||
this.requestAttributes = requestAttributes; | ||
} | ||
|
||
this.embeddingAttributes = embeddingAttributes; | ||
@MediaType(value = APPLICATION_JSON, strict = false) | ||
public Map<String, Object> getRequestAttributes() { | ||
return requestAttributes; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.