rag-sentinel 0.1.1__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rag-sentinel
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: RAG Evaluation Framework using Ragas metrics and MLflow tracking
5
5
  Author: RAGSentinel Team
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "rag-sentinel"
7
- version = "0.1.1"
7
+ version = "0.1.2"
8
8
  description = "RAG Evaluation Framework using Ragas metrics and MLflow tracking"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
@@ -177,8 +177,22 @@ def get_metrics(config):
177
177
 
178
178
 
179
179
  def get_auth_headers_and_cookies(config):
180
- """Get authentication headers and cookies."""
181
- auth_config = config.get('auth', {})
180
+ """
181
+ Get authentication headers and cookies from backend config.
182
+
183
+ Supports three authentication types:
184
+ - cookie: Session cookie authentication
185
+ - bearer: Bearer token authentication
186
+ - header: Custom header authentication
187
+
188
+ Args:
189
+ config: Full configuration dictionary
190
+
191
+ Returns:
192
+ tuple: (headers dict, cookies dict)
193
+ """
194
+ # Auth config is nested under backend.auth in the YAML
195
+ auth_config = config.get('backend', {}).get('auth', {})
182
196
  auth_type = auth_config.get('type', 'none').lower()
183
197
  headers = {}
184
198
  cookies = {}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rag-sentinel
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: RAG Evaluation Framework using Ragas metrics and MLflow tracking
5
5
  Author: RAGSentinel Team
6
6
  License: MIT
File without changes
File without changes
File without changes
File without changes