-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating Reciever Connection data structure
- Loading branch information
Showing
29 changed files
with
639 additions
and
430 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Admin Workflow | ||
|
||
Backend includes the ability to dynamically create Assistants, Rag Connections, and LLM Connections | ||
|
||
## Content Retriever(RAG) Connction | ||
|
||
### Weaviate Example | ||
|
||
```json | ||
{ | ||
"baseRetrieverRequest": { | ||
"contentRetrieverType": "weaviate", | ||
"textKey": "source", | ||
"metadata": ["source","page_number", "title"], | ||
"index": "my_custom_index", | ||
"scheme": "http", | ||
"host": "my-weaviate-instance.svc:8080", | ||
"apiKey" : "ABCDE12345" | ||
}, | ||
"embeddingType": "noimc", | ||
"name": "Example Rag Connection", | ||
"description": "Example of a rag connection" | ||
} | ||
``` |
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
55 changes: 0 additions & 55 deletions
55
src/main/java/com/redhat/composer/config/llm/models/streaming/MistralStreamingModel.java
This file was deleted.
Oops, something went wrong.
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
51 changes: 0 additions & 51 deletions
51
src/main/java/com/redhat/composer/config/llm/models/synchronous/MistralModel.java
This file was deleted.
Oops, something went wrong.
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
27 changes: 27 additions & 0 deletions
27
src/main/java/com/redhat/composer/model/enums/ContentRetrieverType.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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.redhat.composer.model.enums; | ||
|
||
public enum ContentRetrieverType { | ||
|
||
WEAVIATE("weaviate"), | ||
NEO4J("neo4j"); | ||
|
||
private final String type; | ||
|
||
ContentRetrieverType(String type) { | ||
this.type = type; | ||
} | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
|
||
public static ContentRetrieverType fromString(String type) { | ||
for (ContentRetrieverType retrieverType : ContentRetrieverType.values()) { | ||
if (retrieverType.getType().equalsIgnoreCase(type)) { | ||
return retrieverType; | ||
} | ||
} | ||
throw new IllegalArgumentException("No constant with type " + type + " found"); | ||
} | ||
|
||
} |
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.