Skip to content

Instantly share code, notes, and snippets.

View KnowledgeGarden's full-sized avatar

Jack Park KnowledgeGarden

View GitHub Profile
Here is the code and results of a test
<code>
#https://github.com/fw-ai/cookbook/blob/main/examples/rag/mongo_basic.ipynb
key="whatever"
model_name="accounts/fireworks/models/mixtral-8x7b-instruct"
prompt = """
The user message will contain a block of text drawn from a scientific paper. Please analyze this text and perform the following steps:
1. Extract Named Entities: Identify named entities in the text which could be of three types - Drug, Disease, or Other. An entity should be a single proper noun or a term that is clearly defined within the scope of Drugs and Diseases. Entity names should be short and focused, containing no more than 5 essential words. If an entity name cannot be expressed in 5 words or less, it should be ignored.
@KnowledgeGarden
KnowledgeGarden / gist:84ea2b2a76c11178947255891fb48585
Created February 22, 2024 00:09
fireworks mistral result for test.py
## Text 1 - part of Text 3
NALP3, also known as cryopyrin, has been implicated in crystal-associated diseases such as gout and silicosis. Mice fed the diet high in soluble oxalate demonstrated increased NALP3 expression in the kidney.
{
"NALP3": {
"_ENTITY_TYPE": "Drug"
},
"cryopyrin": {
"_ENTITY_TYPE": "Drug",
"abbreviation of": "NALP3"
## Text 1
NALP3, also known as cryopyrin, has been implicated in crystal-associated diseases such as gout and silicosis. Mice fed the diet high in soluble oxalate demonstrated increased NALP3 expression in the kidney.
{
"NALP3": {
"_ENTITY_TYPE": "Drug"
},
"cryopyrin": {
"abbreviation": "NALP3",
"_ENTITY_TYPE": "Drug"
Here is the code and results of a test
<code>
#https://github.com/fw-ai/cookbook/blob/main/examples/rag/mongo_basic.ipynb
key="whatever"
model_name="accounts/fireworks/models/mixtral-8x7b-instruct"
prompt = """
The user message will contain a block of text drawn from a scientific paper. Please analyze this text and perform the following steps:
1. Extract Named Entities: Identify named entities in the text which could be of three types - Drug, Disease, or Other. An entity should be a single proper noun or a term that is clearly defined within the scope of Drugs and Diseases. Entity names should be short and focused, containing no more than 5 essential words. If an entity name cannot be expressed in 5 words or less, it should be ignored.
DO
$do$
BEGIN
IF NOT EXISTS (
SELECT
FROM pg_catalog.pg_roles
WHERE rolname = 'tq_proxy') THEN
CREATE ROLE tq_proxy INHERIT;
END IF;
@KnowledgeGarden
KnowledgeGarden / gist:03c00d1a967b6da76b8c62868ea526d3
Created October 17, 2023 22:54
20231017 remote http other sentence
{
"corefs": [
{
"chainId": "CHAIN8",
"cargo": [
{
"chain": "Saccharomyces cerevisiae var. boulardii",
"sentence": "1"
},
{
{
"corefs": [
{
"chainId": "CHAIN35",
"cargo": [
{
"chain": "S. cerevisiae var.",
"sentence": "1"
},
{
{
"corefs": [
{
"chainId": "CHAIN35",
"cargo": [
{
"chain": "S. cerevisiae var.",
"sentence": "1"
},
{
{
"corefs": [
{
"chainId": "CHAIN35",
"cargo": [
{
"chain": "S. cerevisiae var.",
"sentence": "1"
},
{
{
"corefs": [
{
"chainId": "CHAIN35",
"cargo": [
{
"chain": "S. cerevisiae var.",
"sentence": "1"
},
{