-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: sachintendulkar576123 <[email protected]>
- Loading branch information
1 parent
501452f
commit 59eb190
Showing
6 changed files
with
296 additions
and
543 deletions.
There are no files selected for viewing
72 changes: 36 additions & 36 deletions
72
src/monocle_apptrace/metamodel/maps/attributes/inference/langchain_entities.json
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,39 +1,39 @@ | ||
{ | ||
"type": "inference", | ||
"attributes": [ | ||
[ | ||
{ | ||
"_comment": "provider type ,name , deployment , inference_endpoint", | ||
"attribute": "type", | ||
"accessor": "lambda instance,args:'inference.azure_oai'" | ||
}, | ||
{ | ||
"attribute": "provider_name", | ||
"accessor": "lambda instance,args:args['provider_name']" | ||
}, | ||
{ | ||
"attribute": "deployment", | ||
"accessor": "lambda instance,args: resolve_from_alias(instance.__dict__, ['engine', 'azure_deployment', 'deployment_name', 'deployment_id', 'deployment'])" | ||
}, | ||
{ | ||
"attribute": "inference_endpoint", | ||
"accessor": "lambda instance,args: resolve_from_alias(instance.__dict__, ['azure_endpoint', 'api_base'])" | ||
} | ||
], | ||
[ | ||
{ | ||
"_comment": "LLM Model", | ||
"attribute": "name", | ||
"accessor": "lambda instance,args: resolve_from_alias(instance.__dict__, ['model', 'model_name'])" | ||
}, | ||
{ | ||
"attribute": "type", | ||
"accessor": "lambda instance,args: 'model.llm'" | ||
}, | ||
{ | ||
"attribute": "model_name", | ||
"accessor": "lambda instance,args: resolve_from_alias(instance.__dict__, ['model', 'model_name'])" | ||
} | ||
] | ||
"type": "inference", | ||
"attributes": [ | ||
[ | ||
{ | ||
"_comment": "provider type ,name , deployment , inference_endpoint", | ||
"attribute": "type", | ||
"accessor": "lambda instance,args:'inference.azure_oai'" | ||
}, | ||
{ | ||
"attribute": "provider_name", | ||
"accessor": "lambda instance,args:args['provider_name']" | ||
}, | ||
{ | ||
"attribute": "deployment", | ||
"accessor": "lambda instance,args: resolve_from_alias(instance.__dict__, ['engine', 'azure_deployment', 'deployment_name', 'deployment_id', 'deployment'])" | ||
}, | ||
{ | ||
"attribute": "inference_endpoint", | ||
"accessor": "lambda instance,args: resolve_from_alias(instance.__dict__, ['azure_endpoint', 'api_base'])" | ||
} | ||
], | ||
[ | ||
{ | ||
"_comment": "LLM Model", | ||
"attribute": "name", | ||
"accessor": "lambda instance,args: resolve_from_alias(instance.__dict__, ['model', 'model_name'])" | ||
}, | ||
{ | ||
"attribute": "type", | ||
"accessor": "lambda instance,args: 'model.llm'" | ||
}, | ||
{ | ||
"attribute": "model_name", | ||
"accessor": "lambda instance,args: resolve_from_alias(instance.__dict__, ['model', 'model_name'])" | ||
} | ||
] | ||
] | ||
} |
72 changes: 36 additions & 36 deletions
72
src/monocle_apptrace/metamodel/maps/attributes/inference/llamaindex_entities.json
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,39 +1,39 @@ | ||
{ | ||
"type": "inference", | ||
"attributes": [ | ||
[ | ||
{ | ||
"_comment": "provider type ,name , deployment , inference_endpoint", | ||
"attribute": "type", | ||
"accessor": "lambda instance,args:'inference.azure_oai'" | ||
}, | ||
{ | ||
"attribute": "provider_name", | ||
"accessor": "lambda instance,args:args['provider_name']" | ||
}, | ||
{ | ||
"attribute": "deployment", | ||
"accessor": "lambda instance,args: resolve_from_alias(instance.__dict__, ['engine', 'azure_deployment', 'deployment_name', 'deployment_id', 'deployment'])" | ||
}, | ||
{ | ||
"attribute": "inference_endpoint", | ||
"accessor": "lambda instance,args: resolve_from_alias(instance.__dict__, ['azure_endpoint', 'api_base'])" | ||
} | ||
], | ||
[ | ||
{ | ||
"_comment": "LLM Model", | ||
"attribute": "name", | ||
"accessor": "lambda instance,args: resolve_from_alias(instance.__dict__, ['model', 'model_name'])" | ||
}, | ||
{ | ||
"attribute": "type", | ||
"accessor": "lambda instance,args: 'model.llm'" | ||
}, | ||
{ | ||
"attribute": "model_name", | ||
"accessor": "lambda instance,args: resolve_from_alias(instance.__dict__, ['model', 'model_name'])" | ||
} | ||
] | ||
"type": "inference", | ||
"attributes": [ | ||
[ | ||
{ | ||
"_comment": "provider type ,name , deployment , inference_endpoint", | ||
"attribute": "type", | ||
"accessor": "lambda instance,args:'inference.azure_oai'" | ||
}, | ||
{ | ||
"attribute": "provider_name", | ||
"accessor": "lambda instance,args:args['provider_name']" | ||
}, | ||
{ | ||
"attribute": "deployment", | ||
"accessor": "lambda instance,args: resolve_from_alias(instance.__dict__, ['engine', 'azure_deployment', 'deployment_name', 'deployment_id', 'deployment'])" | ||
}, | ||
{ | ||
"attribute": "inference_endpoint", | ||
"accessor": "lambda instance,args: resolve_from_alias(instance.__dict__, ['azure_endpoint', 'api_base'])" | ||
} | ||
], | ||
[ | ||
{ | ||
"_comment": "LLM Model", | ||
"attribute": "name", | ||
"accessor": "lambda instance,args: resolve_from_alias(instance.__dict__, ['model', 'model_name'])" | ||
}, | ||
{ | ||
"attribute": "type", | ||
"accessor": "lambda instance,args: 'model.llm'" | ||
}, | ||
{ | ||
"attribute": "model_name", | ||
"accessor": "lambda instance,args: resolve_from_alias(instance.__dict__, ['model', 'model_name'])" | ||
} | ||
] | ||
] | ||
} |
64 changes: 32 additions & 32 deletions
64
src/monocle_apptrace/metamodel/maps/attributes/retrieval/langchain_entities.json
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,35 +1,35 @@ | ||
{ | ||
"type": "retrieval", | ||
"attributes": [ | ||
[ | ||
{ | ||
"_comment": "vector store name and type", | ||
"attribute": "name", | ||
"accessor": "lambda instance,args: type(instance.vectorstore).__name__" | ||
}, | ||
{ | ||
"attribute": "type", | ||
"accessor": "lambda instance,args: 'vectorstore.'+type(instance.vectorstore).__name__" | ||
}, | ||
{ | ||
"attribute": "embedding_model_name", | ||
"accessor": "lambda instance,args: instance.vectorstore.embeddings.model" | ||
} | ||
], | ||
[ | ||
{ | ||
"_comment": "embedding model name and type", | ||
"attribute": "name", | ||
"accessor": "lambda instance,args: instance.vectorstore.embeddings.model" | ||
}, | ||
{ | ||
"attribute": "type", | ||
"accessor": "lambda instance ,args: 'model.embedding'" | ||
}, | ||
{ | ||
"attribute": "model_name", | ||
"accessor": "lambda instance,args: instance.vectorstore.embeddings.model" | ||
} | ||
"type": "retrieval", | ||
"attributes": [ | ||
[ | ||
{ | ||
"_comment": "vector store name and type", | ||
"attribute": "name", | ||
"accessor": "lambda instance,args: type(instance.vectorstore).__name__" | ||
}, | ||
{ | ||
"attribute": "type", | ||
"accessor": "lambda instance,args: 'vectorstore.'+type(instance.vectorstore).__name__" | ||
}, | ||
{ | ||
"attribute": "embedding_model_name", | ||
"accessor": "lambda instance,args: instance.vectorstore.embeddings.model" | ||
} | ||
], | ||
[ | ||
{ | ||
"_comment": "embedding model name and type", | ||
"attribute": "name", | ||
"accessor": "lambda instance,args: instance.vectorstore.embeddings.model" | ||
}, | ||
{ | ||
"attribute": "type", | ||
"accessor": "lambda instance ,args: 'model.embedding'" | ||
}, | ||
{ | ||
"attribute": "model_name", | ||
"accessor": "lambda instance,args: instance.vectorstore.embeddings.model" | ||
} | ||
] | ||
] | ||
} | ||
} |
62 changes: 31 additions & 31 deletions
62
src/monocle_apptrace/metamodel/maps/attributes/retrieval/llamaindex_entities.json
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,35 +1,35 @@ | ||
{ | ||
"type": "retrieval", | ||
"attributes": [ | ||
[ | ||
{ | ||
"_comment": "vector store name and type", | ||
"attribute": "name", | ||
"accessor": "lambda instance,args: type(instance._vector_store).__name__" | ||
}, | ||
{ | ||
"attribute": "type", | ||
"accessor": "lambda instance,args: 'vectorstore.'+type(instance._vector_store).__name__" | ||
}, | ||
{ | ||
"attribute": "embedding_model_name", | ||
"accessor": "lambda instance,args: instance._embed_model.model_name" | ||
} | ||
], | ||
[ | ||
{ | ||
"_comment": "embedding model name and type", | ||
"attribute": "name", | ||
"accessor": "lambda instance,args: instance._embed_model.model_name" | ||
}, | ||
{ | ||
"attribute": "type", | ||
"accessor": "lambda instance ,args: 'model.embedding'" | ||
}, | ||
{ | ||
"attribute": "model_name", | ||
"accessor": "lambda instance,args: instance._embed_model.model_name" | ||
} | ||
"type": "retrieval", | ||
"attributes": [ | ||
[ | ||
{ | ||
"_comment": "vector store name and type", | ||
"attribute": "name", | ||
"accessor": "lambda instance,args: type(instance._vector_store).__name__" | ||
}, | ||
{ | ||
"attribute": "type", | ||
"accessor": "lambda instance,args: 'vectorstore.'+type(instance._vector_store).__name__" | ||
}, | ||
{ | ||
"attribute": "embedding_model_name", | ||
"accessor": "lambda instance,args: instance._embed_model.model_name" | ||
} | ||
], | ||
[ | ||
{ | ||
"_comment": "embedding model name and type", | ||
"attribute": "name", | ||
"accessor": "lambda instance,args: instance._embed_model.model_name" | ||
}, | ||
{ | ||
"attribute": "type", | ||
"accessor": "lambda instance ,args: 'model.embedding'" | ||
}, | ||
{ | ||
"attribute": "model_name", | ||
"accessor": "lambda instance,args: instance._embed_model.model_name" | ||
} | ||
] | ||
] | ||
} |
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.