This Semantic Search Research Project represents an experimental endeavor to explore the possibilities of integrating natural language search capabilities within web applications. Leveraging Semantic Kernel with OpenAI large language models (LLMs), the project transforms common language queries into searchable parameters.
For example, a query like "I want a 3-bedroom house in Manchester for 250k" is translated into a structured search, providing a glimpse into a more intuitive and human-centric way to interact with applications: api/properties?rooms=3&town=Manchester&price=250000
.
- Research and Exploration: This project is primarily aimed at researching the feasibility and effectiveness of using natural language in search queries.
- Experimental Integration: Experimenting with AI services like OpenAI to understand how natural language can be utilised in real-world scenarios.
- Not for Production: Please note that this project is experimental and not intended for production use. It serves as a proof-of-concept and a basis for further research and development.
- Generate an OpenAI API key.
- Add the key and your organisation ID to dotnet user secrets by running following commands within the
SemanticSearch.WebApi
directory:
dotnet user-secrets set "OpenAiOptions:ApiKey" "{your key}"
dotnet user-secrets set "OpenAiOptions:OrganizationId" "{your org id}"
- Build and run the project using standard ASP.NET Core commands or via something like Visual Studio:
dotnet build && dotnet run
All contributions are welcome :)