Querent-ai / querent-python-research

Querent
https://querent.xyz
Other
2 stars 0 forks source link

Implementing Fixed Relationship matching logic #287

Closed ngupta10 closed 4 months ago

ngupta10 commented 4 months ago

Binary Testing Results

1. Fixed Entities & Relationships

"config": { "fixed_entities":{ "entities": ["university", "greenwood", "liam zheng", "department", "Metroville", "Emily Stanton", "Coach", "health", "training", "atheletes" ] }, "sample_entities": { "entities": ["organization", "organization", "person", "department", "city", "person", "person", "method", "method", "person"] }, "fixed_relationships":{ "relationships": ["Increase in research funding leads to environmental science focus", "Dr. Emily Stanton advocacy for cleaner energy", "University commitment to reduce carbon emissions", "Dr. Stanton research influences architectural plans", "Collaborative project between sociology and environmental sciences", "Student government launches mental health awareness workshops", "Enhanced fitness programs improve sports teams performance", "Coach Torres influences student-athletes holistic health", "Partnership expands access to digital resources", "Interdisciplinary approach enriches academic experience" ] },
"sample_relationships": {"relationships": ["Causal","Contributory", "Causal", "Influential", "Collaborative", "Initiative", "Beneficial", "Influential", "Collaborative", "Enriching" ] }, "is_confined_search": true, "user_context": "Query: Your task is to analyze and interpret the context to construct semantic triples. The above context is from a geological research study on reservoirs and the above entities and their respective types have already been identified. Please Identify the entity which is the subject and the entity which is object based on the context, and determine the meaningful relationship or predicate linking the subject entity to the object entity. Determine whether the entity labels provided match the subject type and object type and correct if needed. Also provide the predicate type. Answer:" }

Embedded Knowledge image

Semantic Knowledge

image

Neo4j

image

ngupta10 commented 4 months ago

Binary Testing Results

2. Fixed Relationships

"config": {"fixed_relationships":{ "relationships": ["Increase in research funding leads to environmental science focus", "Dr. Emily Stanton advocacy for cleaner energy", "University commitment to reduce carbon emissions", "Dr. Stanton research influences architectural plans", "Collaborative project between sociology and environmental sciences", "Student government launches mental health awareness workshops", "Enhanced fitness programs improve sports teams performance", "Coach Torres influences student-athletes holistic health", "Partnership expands access to digital resources", "Interdisciplinary approach enriches academic experience" ] },
"sample_relationships": {"relationships": ["Causal","Contributory", "Causal", "Influential", "Collaborative", "Initiative", "Beneficial", "Influential", "Collaborative", "Enriching" ] }, "is_confined_search": false, "user_context": "Query: Your task is to analyze and interpret the context to construct semantic triples. The above context is from a geological research study on reservoirs and the above entities and their respective types have already been identified. Please Identify the entity which is the subject and the entity which is object based on the context, and determine the meaningful relationship or predicate linking the subject entity to the object entity. Determine whether the entity labels provided match the subject type and object type and correct if needed. Also provide the predicate type. Answer:"

Embedded Knowledge

image

Semantic Knowledge

image

ngupta10 commented 4 months ago
  1. Fixed Entities & Relationship (LLAMA2)

Embedded Knowledge

image

Semantic Knowledge

image

ngupta10 commented 4 months ago

Dicovery Request

{ "query": "what is dr emily stanton's impact on greenwood university?", "session_id": "2abca8705c81411a883ecfbb011758c2" }

{ "session_id": "2abca8705c81411a883ecfbb011758c2", "query": "what is dr emily stanton's impact on greenwood university?", "insights": [ { "document": "image+predicate.pdf", "source": "gcs://querent-testing-api", "knowledge": "emily_stanton-has_image-department", "sentence": "this decision was influenced heavily by the growing concern among the\nstudent body and faculty about the city's escalating pollution levels.\n\n dr. emily stanton, a prominent figure in the environmental sciences department, has been\nadvocating for cleaner energy use on campus for years. her relentless efforts finally paid off when\nthe university committed to a 40% reduction in carbon emissions over the next five years.", "tags": "emily stanton, department, has image" }, { "document": "image+predicate.pdf", "source": "gcs://querent-testing-api", "knowledge": "dr__emily_stanton-has_image-the_environmental_sciences_department", "sentence": "this decision was influenced heavily by the growing concern among the\nstudent body and faculty about the city's escalating pollution levels.\n\n dr. emily stanton, a prominent figure in the environmental sciences department, has been\nadvocating for cleaner energy use on campus for years. her relentless efforts finally paid off when\nthe university committed to a 40% reduction in carbon emissions over the next five years.", "tags": "dr emily stanton, the environmental sciences department, has image" }, { "document": "image+predicate.pdf", "source": "gcs://querent-testing-api", "knowledge": "emily_stanton-advocating_for-department", "sentence": "this decision was influenced heavily by the growing concern among the student body and faculty about the city's escalating pollution levels. dr. emily stanton, a prominent figure in the environmental sciences department, has been advocating for cleaner energy use on campus for years. her relentless efforts finally paid off when the university committed to a 40% reduction in carbon emissions over the next five years.", "tags": "emily stanton, department, advocating for" }, { "document": "image+predicate.pdf", "source": "gcs://querent-testing-api", "knowledge": "emily_stanton-has_image-department", "sentence": "this decision was influenced heavily by the growing concern among the\nstudent body and faculty about the city's escalating pollution levels.\n\n dr. emily stanton, a prominent figure in the environmental sciences department, has been\nadvocating for cleaner energy use on campus for years. her relentless efforts finally paid off when\nthe university committed to a 40% reduction in carbon emissions over the next five years.", "tags": "emily stanton, department, has image" }, { "document": "image+predicate.pdf", "source": "gcs://querent-testing-api", "knowledge": "emily_stanton-interdisciplinary_approach_enriches_academic_experience-cleaner_energy_use_on_campus", "sentence": "this decision was influenced heavily by the growing concern among the student body and faculty about the city's escalating pollution levels. dr. emily stanton, a prominent figure in the environmental sciences department, has been advocating for cleaner energy use on campus for years. her relentless efforts finally paid off when the university committed to a 40% reduction in carbon emissions over the next five years.", "tags": "emily stanton, cleaner energy use on campus, interdisciplinary approach enriches academic experience" }, { "document": "image+predicate.pdf", "source": "gcs://querent-testing-api", "knowledge": "university-has_image-greenwood", "sentence": "in the verdant campus of greenwood university, nestled within the bustling city of metroville, the\ndynamics of academic and administrative decisions paint a complex tableau of interactions and\noutcomes. recently, the university board announced a significant increase in research funding for\nenvironmental science programs, aiming to position greenwood as a leader in sustainable urban\ndevelopment studies. this decision was influenced heavily by the growing concern among the\nstudent body and faculty about the city's escalating pollution levels.\n\n", "tags": "university, greenwood, has image" }, { "document": "image+predicate.pdf", "source": "gcs://querent-testing-api", "knowledge": "greenwood_university-announced_a_significant_increase_in_research_funding_for_environmental_science_programs-university_board", "sentence": "in the verdant campus of greenwood university, nestled within the bustling city of metroville, the dynamics of academic and administrative decisions paint a complex tableau of interactions and outcomes. recently, the university board announced a significant increase in research funding for environmental science programs, aiming to position greenwood as a leader in sustainable urban development studies. this decision was influenced heavily by the growing concern among the student body and faculty about the city's escalating pollution levels.", "tags": "greenwood university, university board, announced a significant increase in research funding for environmental science programs" }, { "document": "image+predicate.pdf", "source": "gcs://querent-testing-api", "knowledge": "university-has_image-greenwood", "sentence": "in the verdant campus of greenwood university, nestled within the bustling city of metroville, the\ndynamics of academic and administrative decisions paint a complex tableau of interactions and\noutcomes. recently, the university board announced a significant increase in research funding for\nenvironmental science programs, aiming to position greenwood as a leader in sustainable urban\ndevelopment studies. this decision was influenced heavily by the growing concern among the\nstudent body and faculty about the city's escalating pollution levels.\n\n", "tags": "university, greenwood, has image" }, { "document": "image+predicate.pdf", "source": "gcs://querent-testing-api", "knowledge": "the_university_board-has_image-greenwood", "sentence": "in the verdant campus of greenwood university, nestled within the bustling city of metroville, the\ndynamics of academic and administrative decisions paint a complex tableau of interactions and\noutcomes. recently, the university board announced a significant increase in research funding for\nenvironmental science programs, aiming to position greenwood as a leader in sustainable urban\ndevelopment studies. this decision was influenced heavily by the growing concern among the\nstudent body and faculty about the city's escalating pollution levels.\n\n", "tags": "the university board, greenwood, has image" }, { "document": "image+predicate.pdf", "source": "gcs://querent-testing-api", "knowledge": "health-has_image-university", "sentence": "her relentless efforts finally paid off when\nthe university committed to a 40% reduction in carbon emissions over the next five years. dr.\nstanton's research on the impact of urban green spaces on mental health has not only garnered\ninternational acclaim but has also led to the integration of more biophilic design elements in the\nuniversity's new architectural plans.\n\f", "tags": "health, university, has image" } ] }