Try to Fix Embeding RAG Persisted Issues ...
This commit is contained in:
@@ -1387,6 +1387,13 @@ namespace xAiModels.Providers
|
||||
XException.InvalidArgs.Throw();
|
||||
}
|
||||
|
||||
//
|
||||
// Normalize ...
|
||||
if (type.IsNullOrEmpty())
|
||||
{
|
||||
type = XAiModelsConstants.XAiDefaultKnowledgeType;
|
||||
}
|
||||
|
||||
//
|
||||
// Converts Question Vector to Vector Array ...
|
||||
var queryVector = queryEmbedding.ToArray();
|
||||
|
||||
Reference in New Issue
Block a user