This file contains hidden or 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
| from langfuse.decorators import observe | |
| from langfuse.openai import openai # OpenAI integration | |
| QUERY = "你是谁" | |
| @observe(name="多轮改单轮") | |
| def rewrite(user_input : str): | |
| return user_input | |
| @observe(name="意图识别") |
This file contains hidden or 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
| [base] | |
| name=CentOS-7 - Base - mirrors.aliyun.com | |
| failovermethod=priority | |
| baseurl=http://mirrors.aliyun.com/centos/7/os/$basearch/ | |
| http://mirrors.aliyuncs.com/centos/7/os/$basearch/ | |
| gpgcheck=1 | |
| gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7 | |
| #released updates | |
| [updates] |
This file contains hidden or 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
| #include "ftrace_a.h" | |
| #include <iostream> | |
| #include <dlfcn.h> // dladdr | |
| #include <cxxabi.h> // __cxa_demangle | |
| #include <stdlib.h> // malloc, free | |
| #include <string.h> // strlen | |
| extern "C" | |
| { | |
| // This function must not be traced!!! |
This file contains hidden or 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
| set(LIBFOO_TAR_HEADERS | |
| "${CMAKE_CURRENT_BINARY_DIR}/include/foo/foo.h" | |
| "${CMAKE_CURRENT_BINARY_DIR}/include/foo/foo_utils.h" | |
| ) | |
| add_custom_command(OUTPUT ${LIBFOO_TAR_HEADERS} | |
| COMMAND ${CMAKE_COMMAND} -E tar xzf "${CMAKE_CURRENT_SOURCE_DIR}/libfoo/foo.tar" | |
| COMMAND ${CMAKE_COMMAND} -E touch ${LIBFOO_TAR_HEADERS} | |
| WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/include/foo" | |
| DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/libfoo/foo.tar" |
This file contains hidden or 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
| /* | |
| * Copyright (c) 2009-2017, Farooq Mela | |
| * All rights reserved. | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions are met: | |
| * | |
| * 1. Redistributions of source code must retain the above copyright | |
| * notice, this list of conditions and the following disclaimer. | |
| * 2. Redistributions in binary form must reproduce the above copyright |
This file contains hidden or 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
| function splitString(str, seperator) | |
| if str == nil or str == '' then return nil end | |
| local elements = {} | |
| local i = 0 | |
| local left, right = string.find(str, seperator) | |
| local final_pos = 1 | |
| while left ~= nil do | |
| local tmp_str= string.sub(str, final_pos, right - 1 ) |