1,355 questions
Advice
1
vote
1
replies
117
views
How to Evaluate my RAG System using Local / free tier API model
I have build a self-evaluating RAG System now i want to evaluate it so i can know what my system performance for that i used DeeEval framework but the thing is i don’t have OpenAI API key as i’m ...
6
votes
1
answer
166
views
MSVC accepts lambda with deleted parameterized ctor while GCC and Clang rejects
I wrote the following program that is accepted by MSVC, but is rejected by both GCC and CLANG. What is the standard compliant behavior?
Live Demo
struct C
{
C(int) = delete;
C(){};
};
decltype([b ...
19
votes
1
answer
1k
views
Evaluation order of lambda capture initializers
Consider the following program:
#include <iostream>
int f(int i) {
std::cout << i;
return i;
}
int main() {
[a=f(1), b=f(2)]{}();
}
It prints 12 (with all major c++ ...
1
vote
4
answers
160
views
Evaluation of expression in operator position of a list
I am trying to learn Lisp, but it seems like I can not quite get behind how the quotes and the evaluation works. Why does the following expression
((car '(car)) '(a b))
not evaluate to a in the REPL? ...
0
votes
0
answers
65
views
Getting always 0 in agent evaluation with Agent Goal accuracy In RAGAS AI Framework
I am using ragas ==0.2.15.
I have created an Investment Research Assistant in LangChain-based conversational AI system designed to guide users in making informed investment decisions. It supports real-...
0
votes
1
answer
74
views
How to automatically print a variable in pdb?
I am debugging a code in Python using Pdb:
a = [12, 3, 4, 10, 23, 1]
def compute(x):
return 2 * x
for i in a:
b = compute(i)
To trace the value of a variable inside the loop, I set a ...
0
votes
0
answers
46
views
Kotlin undeterministic function call result
The foloowing code provides crossBorderQuantityNet == 0.0 because "into" and "from" variables are the same, BUT if you run it in debug evaluation then it works correctly.
fun f(
a:...
0
votes
1
answer
121
views
In Standard ML, are datatype constructors considered values?
My working definition for value is a special kind of expression that evaluates to itself. So 1 is a value, and 1 + 1 is valuable but not a value because it evaluates to 2.
A datatype constructor like ...
2
votes
1
answer
683
views
static const vs contexpr in c23: what's the point?
c23 added the constexpr keyword to the standard, which seems to me to be quite puzzling.
I understand that the appeal would be that constexpr objects evaluate to constant expressions, whereas static ...
1
vote
1
answer
129
views
Why values in the second row of the confusion matrix plot are missing?
I build a confusion matrix according to the code below:
conf_matrix = confusion_matrix(y_test, y_test_predictions)
print(conf_matrix)
[[122 27]
[ 40 42]]
Observe that the values for it are ...
3
votes
0
answers
117
views
Order of execution in c++ program [duplicate]
Can someone help me to understand why the following demo program , compiled with a gnu compiler, gives the output specified below
#include <iostream>
class Obj {
public:
Obj() { std::...
0
votes
1
answer
98
views
How to load module using a variable with Lua in Openresty?
Trying to load modules based on a value in a variable. Is this possible?
local moduletoload = "login"
local mod_action = require moduletoload
Thanks
3
votes
1
answer
175
views
What is the effect of sizeof for hypothetically oversized objects?
Suppose we have the source:
#include <stdint.h>
#include <stdio.h>
struct foo
{
char b ;
char a [ SIZE_MAX ] ;
} ;
int main ( void )
{
const size_t z = sizeof ( struct foo ) ;
...
0
votes
0
answers
138
views
Evaluate window does not show TDateTime as date format
My TDateTime field (retrieved with TClientDataSet.FieldByName().AsDateTime) shows as a float value in the Evaluate/Modify window, but not in the Watch window, of if I click Inspect:
A simple local ...
2
votes
2
answers
103
views
How does JavaScript evaluate this boolean conversion to arrive at the expected output?
const toBool = [() => true, () => false]
The above line is used in this MDN guide to (seemingly) evaluate the output from Node's fs.promises.access method as a boolean.
The snippet in question ...